You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Hank Knight <hk...@gmail.com> on 2013/11/03 22:29:41 UTC

CouchDB: POST Data in Update Handler

I can access query data and apply it in an update handler like this:
function(doc, req) {
 doc.xyz = req.query.xyz;
 return [doc, 'Updated'];
}

This allows me to update the value of xyz like this:
?xyz=123

Is there any way to access data sent via POST?