📄️ Create
The Create method is used to insert a single document into a collection.
📄️ Create Many
The CreateMany method is used to insert multiple documents into a collection.
📄️ Save
The Save method is used to update a given document in the database. If the document does not exist, it will be inserted into the collection.
📄️ Find
The find query is used to retrieve a list of records from a collection. It is the most common query used in the database.
📄️ Find One
The findOne query is used to retrieve a single record from a collection.
📄️ Find By ID
The FindByID method is used to find a single document by its id. It accepts either a string or an ObjectID as the id.
📄️ Find One And Update
The FindOneAndUpdate method is used to find a single document in the database and update it.
📄️ Find By ID And Update
The FindByIDAndUpdate method is used to find a single document in the database by its ID and update it.
📄️ Update One
The UpdateOne method is used to update a single document in the database that matches the given filter.
📄️ Update By ID
The UpdateByID method is used to update a single document in the database that matches the given ID.
📄️ Update Many
The UpdateMany method is used to update multiple documents in a collection based on a filter.
📄️ Upsert
The Upsert method is used to update a single document in a collection based on a filter and insert the document if it does not exist.
📄️ Count Documents
The CountDocuments method is used to count the number of documents in a collection that match a given filter if provided.
📄️ Distinct
The Distinct method is used to retrieve a list of distinct values for a specified field in a collection.
📄️ Find One And Replace
The FindOneAndReplace method is used to find a single document in the database by the given filter and replace it.
📄️ Find By ID And Replace
The FindByIDAndReplace method is used to find a single document in the database by its ID and replace it.
📄️ Rename
The Rename method is used to rename a field in all documents in a collection.
📄️ Find One And Delete
The FindOneAndDelete method is used to find a single document and delete it from a collection.
📄️ Find By ID And Delete
The FindByIDAndDelete method is used to find a single document by its id and delete it from the database.
📄️ Delete
The Delete method is used to delete a given document in the database.
📄️ Delete By ID
The DeleteByID method is used to delete a single document from a collection by its ID.
📄️ Delete One
The DeleteOne method is used to delete a single document from a collection.
📄️ Delete Many
The DeleteMany method is used to delete multiple documents from a collection.