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 <[email protected]> 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- >
