A MongoDB document is a single record or data structure that is stored in a MongoDB database. Documents are similar to JSON objects and can contain any number of fields, including other documents, arrays, and arrays of documents.
Example:
{
_id: ObjectId(“5f1f3b7b16e9bcc2f8f9e2e7”),
name: “John Doe”,
age: 45,
address: {
street: “123 Main Street”,
city: “New York”,
state: “NY”
},
hobbies: [“reading”, “swimming”, “hiking”]
}