CHAPTER 3 MongoDB CRUD Operations MongoDB provides rich semantics for reading and manipulating data. CRUD stands for create , read , update , and delete . These terms are the foundation for all interactions with the database. MongoDB CRUD Introduction (page 57) An introduction to the MongoDB data model as well as queries and data manipulations. MongoDB CRUD Concepts (page 60) The core documentation of query and data manipulation. MongoDB CRUD Tutorials (page 92) Examples of basic query and data modification operations. MongoDB CRUD Reference (page 129) Reference material for the query and data manipulation interfaces. MongoDB stores data in the form of documents , which are JSON-like field and value pairs. Documents are analogous to structures in programming languages that associate keys with values (e.g. dictionaries, hashes, maps, and associative arrays). Formally, MongoDB documents are BSON documents. BSON is a binary representation of JSON with additional type information. In the documents, the value of a field can be any of the BSON data types, including other documents, arrays, and arrays of documents. For more information, see Documents (page 168). 3.1 MongoDB CRUD Introduction MongoDB stores all documents in collections . A collection is a group of related documents that have a set of shared common indexes. Collections are analogous to a table in relational databases. 57