I'm using PouchDb with a CouchDb backend and on the client upon the website starting up, I'm inserting a document (before the database syncs) with the same 'id' as a document in the server.
This this is fine as it's the same document but as the PouchDb document is _rev: 1 and the couchDb document might be say _rev: 2, when my PouchDb does sync and I try to get the document again I get conflicts.
So I then have on the client:
{ _id: 'mydoc', _rev: '1-xxxxxxxxx' } AND { _id: 'mydoc', _rev: '2-xxxxxxxxx' }
But the correct version is actually _rev: 1 (since this was the version the client first created).
How do I correctly fix this problem on the client so that it fixes the conflict?