We need to resolve conflicts server-side using the Admin REST APIs. We will use “Changes” API with “_changes?active_only=true&style=all_docs&since=nnn” to find all conflicting documents (ie having multiple leaf nodes). Then use “Get Document” API with “?open_revs=all” to obtain document data for those conflicting leaf nodes.
What we are missing is how to obtain the document data for the “Common Parent” node so that we can derive what has changed in the conflicting leaf nodes by comparing them to the common parent node. This is required for n-way-merging of the conflicts due to application semantics.
Can someone please help how we can obtain the revision of the “Common Parent” and then how to retrieve the document data for that common parent node.
We are on versions: CBL 1.4.1, SGW 1.5, CB Server 5.0.1