mongoose-one-to-many-relationship-example-feature-image

MongoDB One-to-Many Relationship tutorial with Mongoose examples

In this tutorial, I will show you one of the most important Relationship in MongoDB that you will use in most database structures: One-to-Many Relationship. You will also know 3 criteria to choose Referencing or Embedding for improve application performance. Then we’re gonna make some MongoDB One-to-Many Relationship examples using Mongoose library.

Related Post: One-to-One relationship tutorial with Mongoose example
Read More

mongoose-one-to-one-relationship-example-nodejs-mongodb-feature-image

MongoDB One-to-One relationship tutorial with Mongoose example

Relationship in NoSQL database is not the same as traditional SQL database. That’s why you need to implement basic types of associations (such as One-to-One, One-to-Many, Many-to-Many) yourself. In this tutorial, I will show you 2 ways to make One-to-One Relationships, then we will implement Mongoose One-to-One relationship example in a Nodejs & MongoDB project.

Related Post: MongoDB One-to-Many Relationship tutorial with Mongoose examples

Read More