3
votes

my problem is to sync between pouch and couchDB. I will manage to get my documents from couchDb and check in the pouch if there is already an existing document. So, if we have a conflict I want so solve the conflict on the client-side. But I don't know how to check if there is a conflict or not. Is there any way to check the pouchDb for given conflicts (after inserting or during inserting documents) and solve them.

greetings

1

1 Answers

1
votes

You can use the pouch-resolve-conflicts plugin, which offers a simple API for resolving conflicts. :)

And yes, you need to do it individually for all docs. So you can do an allDocs() beforehand in order to fetch them.