Collection

public final class Collection: CollectionQueryable

Represents a single MongoDB collection.

### Definition ###

A grouping of MongoDB documents. A collection is the equivalent of an RDBMS table. A collection exists within a single database. Collections do not enforce a schema. Documents within a collection can have different fields. Typically, all documents in a collection have a similar or related purpose. See Namespaces.

  • Used for debugging

    Presents you with the location of the collection

    Declaration

    Swift

    public var description: String