Access to all courses
Relationships and Referencing Models in Mongoose
In this lesson, we will learn how to reference models in Mongoose. ## What is Referencing? Referencing is a way to establish a relationship between two models in Mongoose. This is done by storing the _id of one model in another model. For example, let's say we have two models:
The rest of this lesson is waiting.
Join JS Mastery Pro to unlock it.





Get Full Access
$149 /month
Lock in a year & save—2 months free!
Quizzes, mini-challenges, AI summaries, inline sandboxes
Participation in a private community
Build real production-grade apps
Mock interviews & project reviews
Weekly live sessions & member-only access