# Shaping a Document: Embed or Reference

Related data either goes inside a document, embedded, when it is read with it, or lives in its own collection and is pointed to by its \_id, referenced, when it is shared, changes on its own or grows without end.

![Cheat sheet: Shaping a Document: Embed or Reference](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/6c62f8c8b8a447c589825964e00608f1.webp)

- Category: Node.js
- Level: Journeyman
- Tags: Data Modeling in MongoDB, Embedded Document, Embedding vs Referencing, mongodb, nosql
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-mongodb-designing-documents-cheat-sheet
