Cannot re-create design doc in couchbase lite


#1

I’m getting a:
{ status: 409, reason: 'conflict', error: 'conflict' }
response when attempting to replace a design document. According to the docs PUT should create or updates a design document. Seems that it only creates. Do I need to delete first?


#2

Couchbase Lite (like CouchDB) uses MVCC. When you update any document you need to include a _rev property containing the revID of the revision that you’re replacing.