Janez
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.
I tried on Windows 7. There is no issue. I can't tested in linux. I don't have linux enviroment now.
The basics are the same. API which is different.
Hello, I just see that the page can not be found! Can you provide test case?
originally provided for sorting. but not ready to function. will soon be available in 2.0
Hello, A possible solution the JSON stringify / parse methods combination. ``` javascript var object2 = JSON.parse(JSON.stringify(object)); ```
I put in a setting that uses the toObject was in the tree. I see a lot of functions would be needed. The sub-tree traversal and updates. The 2.0 version...