A document is MongoDB's basic unit of data — a JSON-like object (stored as BSON) with fields and values. A collection is a group of documents (analogous to a table). Documents are flexible: those in the same collection can have different structures.
A document
{
: (),
: ,
: ,
: ,
: {
: ,
:
},
: [, ],
: ()
}
