On Nov 17, 2014, at 6:04 PM, Marc Nicholas <ma...@wimoto.com> wrote:What I'd like to do is compare a value in an incoming document to a set of rules gleaned from a document stored in an existing document (working through them as an array) and then do something if the rules match. We're talking about very simple 'if value X is > Y" type rules here.
--
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-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/e2a157a0-06b3-4de7-900b-78b78a41d647%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Nov 17, 2014, at 6:04 PM, Marc Nicholas <ma...@wimoto.com> wrote:What I'd like to do is compare a value in an incoming document to a set of rules gleaned from a document stored in an existing document (working through them as an array) and then do something if the rules match. We're talking about very simple 'if value X is > Y" type rules here.The answer is no, if I understand you correctly. The sync function deliberately operates only on single documents. There is no way for it to look at another document. Any rules it applies have to be hardcoded into the sync function itself.
Have you looked into having a process that listens on the sync gateway changes feed?
On Nov 18, 2014, at 6:47 AM, Marc Nicholas <ma...@wimoto.com> wrote:How does one attach to the 'changes feeds'? Is this just a channel that scoops up everything