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
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/CAN8S9iJ-iFOp2J_90VFMcXzjB5fd95AykEAymGEQ6z6n%2BPm8hQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.