Referencing
Reference group: Schema patterns
What it does
Separates independently managed or unbounded records.
Syntax
Store related document identifier
Use case
Comments, event history, shared inventory.
Referencing: practical example
{ _id: commentId, postId: ObjectId("65a000000000000000000001"), body: "Useful" }💡 Explanation
Separates independently managed or unbounded records.
When to use it
Comments, event history, shared inventory.
Key Takeaways
- Separates independently managed or unbounded records.
- Typical use: Comments, event history, shared inventory.