To do multiple populates with Node Mongoose, we call populate
multiple times.
For instance, we write
OrderModel.find()
.populate("user")
.populate("meal")
.exec((err, results) => {
// callback
});
to call populate
to populate the user
and meal
field entries in the result.
We get the results from results
in the callback.