Knowledge of deleted documents in Couchbase lite android

I am using Couchbase lite 1.0 beta2 to retrieve and replicate data from couchbase server. In my case, if the document is deleted from the server, I can not check it in the Android application whether the document that already exists locally is deleted from the server. In the replicator method, it returns to me only changed documents or recently added documents.

I tried using document.isDeleted () but always returns false.

So, how can I put a check to see if a document has been deleted from the server?

+4
source share
1 answer

_deleted: true, . , . , , .

couchbase :

Tombstoning

, , , sync'd . , , .

Couchbase Lite

+2

Source: https://habr.com/ru/post/1528765/


All Articles