Is there a way of updating the id of the document? I have tried to achieve that with the following code but this throws an error(below):
this.db.get('oldId')
.then(document => {
this.logsheetDB.put({
_id: 'newId',
_rev: document._rev,
objectToInsert,
});
})
Error:
{"status":409,"name":"conflict","message":"Document update conflict"}"
Is there any other way than recreating it (document)?
Any help appreciated.