Looking to archive the last revision of a document before it’s deleted.
We have a system where we are deleteing stuff in couchbase lite, but we to do analytics on the last revision that was not deleted. Instead of querying through all documents and going to their R-1 revision, how would I be able to archive the oldDoc when it get’s deleted?
Is there a way to make requests to other services in sync gateway, or have it save the old doc somewhere else?
Our system uses Couchbase Lite 1.4, and upgrading is not an option. So the most up to date Couchbase Server we can use is 5.1, and Sync Gateway 1.4.
Thanks!