Janez

Results 4 comments of Janez

The setParent method only set the parentId from document._id or id. The doc.save() method trigger the path update based on parentId. https://github.com/janez89/mongoose-materialized#instructions Check the recommended methods section. Only doc.save() /...

Sorry Guys, I still work on this issue but, i don't have enough time to do fast. I release a new version soon.

Hy, Unfortunately, it must be flatten the tree. Later it I will show an example.

Sorry for the late answer. Originally the '_w' field provided. Do not use the _w field for sorting because was problematice the tree building.