couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mehdi El Fadil <mehdi.elfa...@mango-is.com>
Subject Re: Facing conceptual problem querying view
Date Thu, 22 Sep 2011 21:27:00 GMT
Hi Neelesh,

This is certainly something related to cradle, so you rather should talk
about your issue to the maintainer(s) of that library. I found one issue
reported, which looks quite like yours:
https://github.com/cloudhead/cradle/issues/43

Hope this helps,

Mehdi


On Fri, Sep 9, 2011 at 7:18 AM, Neelesh Bafna <nbafna@syntactice.com> wrote:

> hi,
>
> newbie here working on couchDB ...small query...d present problem i face is
> with viewing the query using cradle...
>
> my map function is 'search' in design document '_design/users' & it
> emits 'emit(doc.username,
> null);'
>
> when querying view: db.view('users/search',{key:username},function (err,
> res){}
>
> As per my understanding the 'res' must only contain data which matches
> key==username ..right??but here 'res' contains the whole data emitted by
> the
> map function.
>
> can you please help me in right direction?i dont understand the way 'key'
> is
> being used and reflected.
>
> Plz help, thanks in advance.
>
> --
> Regards
> Neelesh Bafna
> -Have a great day-
>

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