Thank you Jens, let me provide you an overview of what I’m trying to do:
In my App, I have mainly two types of documents: lets call them “operative” docs, and “configuration” docs.
I need to synchronize all the configuration docs regardless of their date, but, for the operative docs, I need to discard old docs and synchronize only the earliest ones.
channel by week but this approach, is not suitable for this purpose because it will discard my configuration documents.
So what I’m trying to do then, is to set an “oldChannel” (noExiste) to the old operative documents so that they are not visible to the mobile app any more. But then, if I’m understanding correctly, if I assign them to another channel, couchbase would set them as “in conflict” due to the fact that there’s still a document version in an old branch, is this right?
Therefore my question would be if it is possible to set a new channel to a document and delete the previous branches, so that couchbase lite won’t see any old channel but the new one only.
How can we do that?