Exception thrown if a document could not be found.
Background index construction allows read and write operations to continue while building the index.
Drops duplicates in the database. Only for Mongo versions less than 3.0
Will create an index with (by default) no flags.
Sparse indexes are like non-sparse indexes, except that they omit references to documents that do not include the indexed field.
MongoDB allows you to specify a unique constraint on an index. These constraints prevent applications from inserting documents that have duplicate values for the inserted fields.
Will ignore the variables and not encode/decode them.
Generates a struct/class object from a Bson node
Binds a MongoCollection to a Schema. Can only be done once!
Generates a Bson document from a struct/class object
Mixin for functions for interacting with Mongo collections.
Range for iterating over a collection using a Schema.
Class serializing to a bson date containing a special now value that gets translated to the current time when converting to bson.
Encodes the value as binary value. Must be an array with one byte wide elements.
Custom decode function. func is the name of the function which must be present as child.
Custom encode function. func is the name of the function which must be present as child.
TTL indexes expire documents after the specified number of seconds has passed since the indexed field value; i.e. the expiration threshold is the indexed field value plus the specified number of seconds. Field must be a SchemaDate/BsonDate. You must update the time using collMod.
Custom name for special characters.