Getting Started
What is MongoDB?
Install / Config
C.R.U.D. Ops
Data Modeling
Database Mgmt
Data Modeling
Tree structures: Parent References
What are "parent" references?
.
A special property "parent"
Stores the _id of the document one level up in the tree
Why use parent references?
.
Used to navigate tree-structured or hierarchical data
How do you implement parent references in MongoDB?
.
When you save a document, include a "parent" property
which stores the _id of the level above
+
o
-