Versioned document pattern
Reference group: Schema patterns
What it does
Supports auditing and historical reconstruction at added storage/write cost.
Syntax
Store revisions or a history collection
Use case
Compliance, editorial history, important configuration.
Versioned document pattern: practical example
{ _id: docId, version: 4, title: "Current title" }💡 Explanation
Supports auditing and historical reconstruction at added storage/write cost.
When to use it
Compliance, editorial history, important configuration.
Key Takeaways
- Supports auditing and historical reconstruction at added storage/write cost.
- Typical use: Compliance, editorial history, important configuration.