The following classes are available globally.
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.See more
public final class Collection: CollectionQueryable
A subset of data in CollectionSee more
public class CollectionSlice<Element> : CollectionQueryable, Sequence, IteratorProtocol
A Cursor is a pointer to a sequence/collection of Documents on the MongoDB server.
It can be looped over using a
for let document in cursorloop like any other sequence.
It can be transformed into an array withSee more
Array(cursor)and allows transformation to another type.
public final class Cursor<T>