Building a RESTful API with Node.js


Populating Queries with Mongoose | Creating a REST API with Node.js


Hide/Show description

Sometimes, you have related documents in your MongoDB. Learn how you can populate them with data of each other via Mongoose. ---------- Learn Node.js in our comprehensive 30h+ course: https://www.udemy.com/nodejs-the-complete-guide/?couponCode=AM_NDE_YT populate() in the Mongoose Docs: http://mongoosejs.com/docs/populate.html Source Code: https://github.com/academind/node-restful-api-tutorial/tree/08-populate-orders-with-products/api/routes ---------- • You can follow Max on Twitter (@maxedapps). • You can also find us on Facebook.(https://www.facebook.com/academindchannel/) • Or visit our Website (https://www.academind.com) and subscribe to our newsletter! See you in the videos!