Answer the question
In order to leave comments, you need to log in
How to make population in mongoose document?
How can I make such a population?
User.find({id: 123}, function(err, user) {
user.populate('vk_account').populate('ok_account')...
})
User.find({id: 123}, function(err, user) {
vk_account.find({user_id: 123})
ok_account.find({user_id: 123})
...
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question