Embedding stores related data inside a document (nested); referencing stores it in separate documents linked by id. This is the core modeling decision in MongoDB, with different trade-offs for read performance, data size, and update complexity.
Embedding — nested within the document
{
: (),
: ,
: { : , : },
: [
{ : , : },
{ : , : }
]
}
