jackyfkc.github.io

教土豆学计算机

Document

A record in MongoDB is a document, which is a data structure composed of field and value pairs. Similar to JSON, the values of fields may include other documents, arrays and arrays of documents.

MongoDB 中的一条 record 是一个 document, document 由 field-value 对组成. 类似于 JSON, value 可以包含其它 document, 数组以及 document 的数组.

Data Model

Data in MongoDB has a flexible schema. MongoDB’s collections do not enforce document structure.

Embedded Document

CRUD

Further Readings