Mongodb hierarchy

A newbie question: it seems that mongo does not by default describe a hierarchical structure. So if i were using something like xpath in xml, i could find the parents of a giving node. Am i correct in thinking that you need to 'build-in' tree-like relationships (with say 'parent') to be able to do that?
LVL 86
CEHJAsked:
Who is Participating?
 
James BilousSoftware EngineerCommented:
In MongoDB you can use "categories" to automatically implement this sort of behavior. See:

https://docs.mongodb.com/v3.2/tutorial/model-tree-structures-with-parent-references/
0
 
CEHJAuthor Commented:
Great
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.