The document model
Review the code below, which demonstrates the structure of a document.
Document structure
Syntax:
{
"key": value,
"key": value,
"key" : value
}
Example:
{
"_id": 1,
"name": "AC3 Phone",
"colors" : ["black", "silver"],
"price" : 200,
"available" : true
}
The values in a document can be any data type, including strings, objects, arrays, booleans, nulls, dates, ObjectIds, and more!
