Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Use `keys` in query #42

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 13, 2012
  1. @pimvdb

    Enable to convert to JSON

    pimvdb authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/couchdb.js
View
2  lib/couchdb.js
@@ -77,7 +77,7 @@ exports.toJSON = function(data) {
// Encode only key, startkey and endkey as JSON
exports.toQuery = function(query) {
for (var k in query) {
- if (['key', 'startkey', 'endkey'].indexOf(k) != -1) {
+ if (['key', 'keys', 'startkey', 'endkey'].indexOf(k) != -1) {
query[k] = JSON.stringify(query[k]);
} else {
query[k] = String(query[k]);
Something went wrong with that request. Please try again.