Hi guys I'm trying to use the following request:
curl http://localhost:5984/contacts/_design/country/_view/USA?startkey=["USA",{}]&endkey=["USA",{}].
On the following view:
{
"_id": "_design/country",
"_rev": "1-51488ea3931fdca9b9e2de84ef99c4d9",
"language": "javascript",
"views": {
"USA": {
"map": "function(doc) {\nif(doc.type == \"contact\") \nemit([doc.country,doc.name] , {name: doc.name, email: doc.email});\n}\n"
}
}
}
and I get this error: [globbing] bad range in column 72
Can you help me?
,{}forendkey, leave it out of thestartkey. In addition, I would wrap your URL in single quotes so your shell won't try and expand the{}as a glob pattern. (or try Alexis' answer about adding-g) - Dominic Barnesstartkey=["USA",{}]do as opposed tostartkey="USA"? - ksav