> On Jul 16, 2015, at 12:05 PM, [email protected] wrote:
> 
> However, how would i query all documents that belong to a certain parent. 
> Would that be possible with the above map function? Or would i need a second 
> map function?

That’s a key range query 
<http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/query/index.html#key-ranges>.
 In JSON terms, you’d use a startKey of [parent_uuid] and an endKey of 
[parent_uuid, { }]. (The “{ }” is basically a placeholder; see the docs I 
linked to.)

—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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/1AD2CC94-57B8-4282-9706-EAA2DCC75DBF%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to