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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
James BilousConnect With a Mentor Software 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
All Courses

From novice to tech pro — start learning today.