incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Higham <mar...@ocasta.co.uk>
Subject Re: Rewriting query keys
Date Sat, 30 Nov 2013 15:12:35 GMT
If you could provide the code for the view you are using then it would be
easier to supply the rewrite you need




On 29 November 2013 20:57, Oliver Schmidt <oliver.schmidt@orlives.de> wrote:

>  Thanks, but I CouchDB complains that I don't use valid JSON. I need a
> composed key as an array, how can I achieve this?
>
>
>
> Am Mittwoch, 27. November 2013, 14:52:51 schrieb martinh@gmail.com:
>
> > Here's an example of one I use that does something similar
>
> >
>
> > [
>
> >
>
> >
>
> >     {
>
> >         "from" : "/isBlocked/:blockee",
>
> >         "to": "_list/isBlocked/isBlocked",
>
> >         "query": {
>
> >             "key" : ":blockee",
>
> >             "include_docs" : "true",
>
> >             "reduce" : "false"
>
> > }
>
> >     },
>
> >     ...
>
> > ]
>
>
>

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