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