Introduction
We use nested documents to store related information inside one record. This keeps data organized and easy to find.
When you want to save a person's contact info along with their address in one place.
When storing a product with multiple features or specifications inside it.
When keeping a blog post with comments inside the same document.
When saving an order with a list of items bought together.
When grouping related settings or preferences inside a user profile.