- find
Finds all documents in the collection.
- insertOne
Inserts the provided document. If the document is missing an identifier, the
driver should generate
- createIndex
Create an index with the given keys and options.
- deleteOne
Removes at most one document from the collection that matches the given filter.
If no documents matc
- updateOne
Update a single document in the collection according to the specified arguments.
Note: Supports retr
- deleteMany
Removes all documents from the collection that match the given query filter. If
no documents match,
- count
Counts the number of documents in the collection according to the given options.
- insertMany
Inserts one or more documents. A call to this method is equivalent to a call to
the bulkWrite method
- drop
Drops this collection from the Database.
- aggregate
Aggregates documents according to the specified aggregation pipeline.
- replaceOne
Replace a document in the collection according to the specified arguments.Note:
Supports retryable w
- findOneAndUpdate
Atomically find a document and update it.Note: Supports retryable writes on
MongoDB server versions