Perhaps a weird query, but I'm using CouchDB views, which requires the string to be surrounded by double quotes.
It works:
? Key = ["test", "234"]
This will not work:
? Key = ['test', '234']
So, in my NodeJS application, I am trying to create the correct key to go to CouchDB
var key1 = "test"; var key2 = "234"; { key: [key1, key2] }
It always appears as
{ key: [ 'test', '234' ] }
Is there an effective way to get my desired result? (double quotes)
source share