couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio Batalha <fabiobata...@gmail.com>
Subject Re: Views with key as dictionary
Date Tue, 14 Dec 2010 18:40:36 GMT
Thanks Aurélien,

On Tue, Dec 14, 2010 at 3:08 PM, Aurélien Bénel <aurelien.benel@utt.fr>wrote:

> Hi Fabio,
>
> > how can I filter a view result using a dictionary as key, for example I
> want to bring just registers with "collection ==
> > scl".
>
>
> You would use an array as the key:
>   "key": ["sci", "20100900"]
>
> and then you would call the view with:
>   ?startkey=["sci"]&endkey=["sci",{}]
>
>
> Regards,
>
> Aurélien

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message