On Feb 23, 2014, at 1:17 PM, Eduardo Scoz <[email protected]> wrote:

> How can I set up the startkey/endkey/key so that the view only returns rows 
> with keys starting with @[@"A", @"Car"] ? 

view.startKey = @[@"A", @"Car"];
view.endKey = @[@"A", @"Car", @{}];

The trick is that an empty dictionary sorts after any non-dictionary value, 
making it useful to use at the end of a range.

--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/D5CC64CF-A610-41BC-AB56-CB802DFD8E30%40couchbase.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to