Docs 菜单

Document Relationships

在此页面上

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:

在此页面上