Additional options
The name of the collection
Calculates aggregate values for the data in a collection
A sequence of data aggregation operations or stages
If "options.forceFetch" set to true returns the array of documents, otherwise returns a cursor
Inserts several documents into the collection
Documents to be inserted
Returns a promise with the inserted documents
Alias for {@link Collection#remove}
Alias for {@link Collection#remove}
Drops a collection
Promise with the deleted documents
Finds all matching documents
Returns a promise with the documents (or cursor if "options.forceFetch" set to true)
Finds the first matching document
Returns a promise with the first matching document of the collection
Inserts a document into the collection
Document to be inserted
Returns a promise with the inserted document
Removes one or many documents
Promise with the deleted documents
Insert or update a document. If the document has an "_id" is an update (with upsert), if not is an insert.
Document to be inserted/updated
Returns a promise with the inserted document or the update information
Updates one or many documents
Returns a promise with the update/insert (if upsert=true) information
Generated using TypeDoc