Docs Menu
Docs Home
/
MongoDB Manual
/ /

Document Relationships

On this page

  • Get Started

MongoDB's flexible data model gives you multiple options to map relationships between different entities in your schema.

Generally, your choice of data model depends on whether you want to embed related data in the same collection or use references to connect related data that exists in separate collections. Before you choose a relationship pattern, review Embedded Data Versus References to understand the advantages of each approach.

These pages show examples of different data relationships and how to apply them in a MongoDB schema:

Back

Examples and Patterns

On this page