incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "john.tiger" <john.tigernas...@gmail.com>
Subject did query change in 1.20 ?
Date Mon, 24 Sep 2012 00:03:28 GMT
was there a change from ?key=<some value> what is the right syntax ?

/_design/ddoc/_view/getuserdoc?key="jdoe"

=> "error":"bad_request","reason":"invalid_json"}
so does "key"="jdoe", so does key=jdoe

but
?{key:"jdoe"} returns all doctypes="user" but not just jdoe as wanted

here's the view:

   "views":{
     "getuserdoc":{
       "map":"function(doc) {
         if (doc.doctype == 'user'){
           emit(doc.username, doc);
         }
       }"
     }

Mime
View raw message