In the sample code below ``` var cloudant = require('cloudant')('https://reader.cloudant.com'); var guitars = cloudant.db.use('guitars'); guitars.search('search', 'search', {q:'*:*',limit:0, counts: ["brand"] }, function(err, data) { if (err) throw err console.log(err,data); }); ``` instead I have to do: ``` guitars.search('search', 'search', {q:'*:*',limit:0, counts: JSON.stringify(["brand"]) }, function(err, data) { ... ``` I think our library should detect if `counts` is provided as an array and JSON.stringify it for the user.
In the sample code below
instead I have to do:
I think our library should detect if
countsis provided as an array and JSON.stringify it for the user.