-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Objects in Tree #3
Comments
I was write this code to my project, maybe it can be helpful var ghUser = mdb.model('ghUser'); function findChilds(usr,next){ ghUser.findOne({login:'fatih.soydan'}, function(e,cuser){ Returns that : |
I need the same things I've tried to implement this inside mongoo-tree directly. Pull request waiting for approval. |
If you want a native implementation, npm install mongoose-tree2 https://github.com/franck34/mongoose-tree Franck |
Hi;
I want to get objects in a tree like this :
[ {name : 'adam',
childs: [
{
name:'bob',
childs:[
{
name : 'carol',
childs:[]
}
]
},
{
name:'bob2_anotherchild',
childs:[]
}
]
}]
How can do that ?
The text was updated successfully, but these errors were encountered: