Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Documentation needs fixed for passing keys as parameter in db.view #304

Open
PaulAllan1 opened this issue Dec 9, 2015 · 2 comments
Open

Comments

@PaulAllan1
Copy link

Currently the documentation for db.view is as follows:
"db.view(designname, viewname, [params], [callback])

calls a view of the specified design with optional query string additions params. if you're looking to filter the view results by key(s) pass an array of keys, e.g { keys: ['key1', 'key2', 'key_n'] }, as params."

In actual fact what needs to be passed in to filter by keys is more like {keys: [['key1', 'key2', 'key_n']] }. Please update the documentation.

@franklinlindemberg
Copy link

I agree with @PaulAllan1, please update the documentation. I lost much time trying to figure it out.
Regards.

@carlosduclos
Copy link

This repository has been merged into apache/couchdb-nano, please continue the discussion here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants