Introduction
Embedded documents let you store related information inside a single record. This keeps data organized and easy to find.
When you want to keep related details together, like a person's address inside their profile.
When you want to avoid multiple database lookups by storing connected data in one place.
When the nested data is small and always used with the main document.
When you want to model real-world objects that naturally contain other objects, like a blog post with comments.
When you want to update related data in one operation.