MongoDB Data Model
JSON documents
Limitations of hierarchical data
- Enforces one view of the data.
- E.g., a person has children.
- What if you want to find the parents of a child?
- Models 1:1 and 1:n relationships.
- But not a good fit for n:1 and n:n.
- For these, you need object references.
|