> On Feb 26, 2015, at 12:13 PM, Jeremy Kelley <jer...@33ad.org> wrote:
> 
> 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.

To accomplish this, all you need to do is make sure that the sync function 
doesn’t add the docs to any channels that are accessible to clients. You don’t 
even need to modify the document on the server.

For example, say these docs are identified by a property “type”:”sendonly”. 
Then the sync function could do something like
        if (doc.type == ‘sendonly’) {
                channel(“serverprocessing”);
                return;
        }
So these docs only get added to one channel, “serverprocessing". Then you just 
ensure that clients don’t have access to that channel, and that the server-side 
process monitors that channel’s _changes feed.

—Jens

-- 
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 mobile-couchbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/C19F37D4-8086-464F-B889-F085388E7394%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to