
Subdocuments
Subdocuments are smaller, related documents nested within a larger main document in a database. Think of a main document like a report, and subdocuments as detailed sections or attachments within that report. They allow for organizing complex data hierarchically, making it easier to manage related information together. For example, in an online store, a product document may contain subdocuments for customer reviews or inventory details. Subdocuments help to structure and retrieve complex data efficiently, reflecting real-world relationships within a single comprehensive document.