Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (34 sloc) 1.794 kb
:orphan:
.. _data-modeling-trees:
================================
Model Tree Structures in MongoDB
================================
To model hierarchical or nested data relationships, you can use
references to implement tree-like structures. The following *Tree*
pattern examples model book categories that have hierarchical
relationships.
Model Tree Structures with Child References
-------------------------------------------
(:doc:`link </tutorial/model-tree-structures-with-child-references>`)
.. include:: /tutorial/model-tree-structures-with-child-references.txt
:start-after: start-model-tree-structures-include-here
Model Tree Structures with Parent References
--------------------------------------------
(:doc:`link </tutorial/model-tree-structures-with-parent-references>`)
.. include:: /tutorial/model-tree-structures-with-parent-references.txt
:start-after: start-model-tree-structures-include-here
Model Tree Structures with an Array of Ancestors
------------------------------------------------
(:doc:`link </tutorial/model-tree-structures-with-ancestors-array>`)
.. include:: /tutorial/model-tree-structures-with-ancestors-array.txt
:start-after: start-model-tree-structures-include-here
Model Tree Structures with Materialized Paths
---------------------------------------------
(:doc:`link </tutorial/model-tree-structures-with-materialized-paths>`)
.. include:: /tutorial/model-tree-structures-with-materialized-paths.txt
:start-after: start-model-tree-structures-include-here
Model Tree Structures with Nested Sets
--------------------------------------
(:doc:`link </tutorial/model-tree-structures-with-nested-sets>`)
.. include:: /tutorial/model-tree-structures-with-nested-sets.txt
:start-after: start-model-tree-structures-include-here
Jump to Line
Something went wrong with that request. Please try again.