subdocument
Subdocument refers to a document that is embedded within another document, forming a hierarchical data structure. A subdocument is a discrete unit with its own content and possibly metadata, yet it exists as part of a larger parent document. In many formats, subdocuments are serialized as a nested structure that can be extracted, validated, or transmitted independently of the parent.
In document-oriented data models, subdocuments appear as embedded objects within a parent document. For example, in
Common use cases include storing related information together—such as a user profile with embedded address and
Advantages include locality of data, reduced need for joins or multiple fetches, and easier transactional updates
Subdocuments are often contrasted with references to separate documents. Related concepts include embedded documents, nested structures,