liveBook · Manning

CRUD

As explained in MongoDB 8.0 in Action, Third Edition

A CRUD operation is a database operation that creates, reads, updates, or deletes data.

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:

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

How MongoDB 8.0 in Action, Third Edition covers it

How deep it goes
Explains the four operations and their MongoDB execution context, with attention to behavior, performance, and modification practices.
Examples
Uses MongoDB documents, mongosh, Compass, drivers, filters, projections, sorting, and transaction constraints as concrete contexts.
What you can do after
Operate MongoDB document life cycles through CRUD workflows using mongosh, Compass, or database drivers.
How it connects
Connects CRUD to the Query API, aggregation pipelines, document life cycles, indexes, and multidocument transactions.

Also explained in

Compare how 11 books explain CRUD →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of MongoDB 8.0 in Action, Third Edition. The section links point to the parts of the book it draws on.