Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Mongoose - populate nested array

Car
  .find()
  .populate({
    path: 'partIds',
    model: 'Part',
    populate: {
      path: 'otherIds',
      model: 'Other'
    }
  })
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Mongoose #populate #nested #array
ADD COMMENT
Topic
Name
4+2 =