Gets the namespace of this collection.
Aggregates documents according to the specified aggregation pipeline.
the aggregation pipeline
a read operation which can be used to execute the aggregation
Counts the number of documents in the collection.
the query filter
the options describing the count
a Promise containing the number of documents in the collection
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
the query filter to apply the the delete operation
a Promise containing the result of the remove many operation
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.
the query filter to apply the the delete operation
a Promise containing the result of the remove one operation
Finds all documents in the collection.
the query filter
a read operation which can be used to execute the query
Inserts one or more documents.
the documents to insert
a Promise containing the result of the insert many operation
Inserts the provided document. If the document is missing an identifier, the client should generate one.
the document to insert
a Promise containing the result of the insert one operation
Update all documents in the collection according to the specified arguments.
a document describing the query filter, which may not be null.
a document describing the update, which may not be null. The update to apply must include only update operators.
the options to apply to the update operation
a Promise containing the result of the update many operation
Update a single document in the collection according to the specified arguments.
a document describing the query filter, which may not be null.
a document describing the update, which may not be null. The update to apply must include only update operators.
the options to apply to the update operation
a Promise containing the result of the update one operation
Create a new emoteMongoCollection instance with a different default class to cast any documents returned from the database into.
the default class to cast any documents returned from the database into.
a new CoreRemoteMongoCollection instance with the different default class
Generated using TypeDoc
An interface representing a MongoDB collection accesible via the Stitch MongoDB service.