I have JSON documents like the following:
{
_id: 'some_id',
title: 'Untitled',
units: [
{
title: 'Untitled',
theme: 'basic'
},
{
title: 'Untitled'
}
],
values: [1, 2, 3]
}
I'm looking for database or approach that allows me to support versioning of that document. Basically I need the following:
- Partial edits of document should be possible without having to update the entire document
- Get full diff between two revisions
- Rollback document to particular revision
May you advise something for my purpose?