With Couchbase Lite 2.0.0 for .net (currently db019) getting notified whenever the database changes is quite simple using the Eventhandler in Couchbase.Lite.Database:
public event EventHandler<DatabaseChangedEventArgs> Changed;
I can also find out what documents where changed using the DatabaseChangedEventArgs. So far so good.
But how do I go about finding out what changes took place in those documents?
Maybe I am missing something very simple here, but I haven’t found a way to get this information from the documents?
I understand that revisions are solely meant to help in conflict resolution and not for providing information about previous versions of a document. So I take it, that it is by design that there doesn’t seem to be any way to access past revisions on the client side, correct?
And, if Couchbase does not provide a mechanism to access past versions of a document, are there any best practices out there on how to approach the subject in a Couchbase-kind-of-way?
Just thought I check back with you all before writing my own solution …
Any information, any clarification, any thoughts are appreciated. Thanks!