CRUD Operations (Create, Read, Update, and Delete) are the fundamental set of operations that enable users to interact with the MongoDB server.
The create or insert operations are used to add new documents to the collection. If a collection does not already exist in the database, it will be created.
Read operations are used for getting documents from a collection, or to search for a document inside a collection.
The update operations are used to update or change an existing document in the collection. MongoDB provides the following ways for performing update operations:
The delete operation is used to delete or remove documents from a collection. MongoDB provides the following ways to perform delete operations:
These MongoDB operations involve locating a document based on offered filter criteria and performing a certain operation on it. MongoDB has multiple techniques for performing these operations: