CRUD describes the four fundamental ways applications manage documents: creating, reading, updating, and deleting data. Together, these operations define the document life cycle and provide the basic interface between an application and MongoDB. section 4.0
The four operations serve distinct data-management purposes:
- Create adds new documents to a MongoDB database. section 4.0
- Read retrieves documents, using queries to select the required data. section 1.5 section 4.0
- Update changes details in existing documents. section 4.0
- Delete eliminates documents from the database. section 4.0
MongoDB exposes CRUD through its Query API, which can be used with mongosh, Compass, or drivers. The same API also supports filters, projections, and sorting for reads, while aggregation pipelines handle more complex reshaping, joins, and analysis. section 1.5 section 1.6
CRUD inside transactions
CRUD operations can participate in multidocument transactions, but cross-shard transactions carry performance overhead. Some non-CRUD operations, including collection or index creation in specified transaction contexts, are not permitted. section 8.5










