That was my attempt at pseudo coding the output. Based on this discussion, I feel my questions are answered.
Thanks for your help! On Dec 21, 2014 10:13 PM, "Jens Alfke" <[email protected]> wrote: > > On Dec 20, 2014, at 1:06 AM, Ken Courville <[email protected]> wrote: > > Also, I do need to ensure that the map block is included on all platforms. > > > > Not quite sure what you're getting at here. The map block has to be > registered at runtime for view indexing to work; else you'll get a fatal > error if the view is queried and needs to be re-indexed. You'll have to > ensure that the map blocks have the same behavior, whichever platform > they're implemented on. > > So, if I emit something like '["@{doc.type}", "@{doc.id}"]' on the > server, then I also need to emit that same string value on corresponding > clients. > > > That's not a string, it's an expression. I thought at first it was > Objective-C, but it looks like it isn't; are the @ signs part of some other > string formatting syntax? > > The important thing here is that this view emits the doc's "type" property > as the key and the "id" property as the value. The map blocks you define on > any platform need to do the same thing. > > —Jens > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Couchbase Mobile" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/mobile-couchbase/2Mva62TRrew/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mobile-couchbase/06CAD637-3C19-4FEA-B4D5-5356CCFE8DF4%40couchbase.com > <https://groups.google.com/d/msgid/mobile-couchbase/06CAD637-3C19-4FEA-B4D5-5356CCFE8DF4%40couchbase.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAPMdqEDuwBhM%2BocoXHq%2B5GHQLj6DBZPwSwFk2mY8HQy9FoOgGg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
