Hi all,
I would like to create records on the device, then sync them through syncgw to couchbase. I then have external processes that will manipulate those documents. I then don't want them to sync back to iOS.
The processes that work on docs on the server would add a _serveronly=true member to the document.
Can I do something like this with the sync function?
"sync":`function(doc) { if (doc._serveronly) return; ....other real sync channel logic ...}`,
I'm in the middle of setting up a simple test to see if this will even work, but I'm wondering if there's any adverse effects to this that I'm missing or if it will even work this way.
Any thoughts (especially good ones) appreciated.
-jeremy
--
The Christian ideal has not been tried and found wanting;
it has been found difficult and left untried – G. K. Chesterton