Thursday, 18 May 2017

Mongoose Hierarchical Data/Structure

How is the right way, best practice to use Mongoose with this Mongo Example/Documentation:

https://docs.mongodb.com/manual/tutorial/model-tree-structures/

How can we "auto reference" data? in order to build:

  • TreeNodes (like files/folders)
  • Hierarchical data (like roles/access/etc)

Are there examples/documentation of Mongoose implementations to Create, Read, Update, Delete hierarchical documents?

I already tried some examples found in Internet, but i'm still not able to load the hierarchical data in a mongoose query.



via Ninja Coding

No comments:

Post a Comment