Remove all conflicts in pouchDB
my problem is sync between bag and couchDB . I will manage to get my documents from couchDb and check the cover if there is already an existing document. So if we have a conflict , I want this conflict to be resolved on the client side . But I don't know how to check if there is a conflict or not. Is there a way to check pouchDb for given conflicts (after insertion or during insertion of documents) and resolve them.
Hello
+3
source to share
1 answer
You can use the pouch-resolve-conflicts plugin which offers a simple API for resolving conflicts. :)
And yes, you need to do this individually for all documents. Therefore, you can make allDocs()
in advance to get them.
+1
source to share