I am having some trouble using the nano wrapper for couchDB within NodeJS:
https://github.com/dscape/nano
My question is, how do I find and return all users whose email matches 'foobar@baz.com?'. What if I only wish to return the name field?
I am confused by the concenpt of views and designnames/viewnames and if someone could show me an example call, that would be wonderful.
Thanks,
var nano = require('nano')('http://localhost:5984');
nano.db.create('users');
var users = nano.db.use('users');
user.views()//what parameters go in here?
/*example user object
user = {
'id' : '123',
'email' : 'foobar@baz.com'
'name':'John Doe'
}
*/