Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

multiple populate on same level

Manager.find()
    .populate({
         path    : 'users',
         populate: [
             { path: 'cars' },
             { path: 'houses' }
         ]
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiple #populate #level
ADD COMMENT
Topic
Name
5+7 =