Skip to navigation
Update a couchdb document on the server side
11.01.18
design doc: { "_id": "_design/update", "updates": { "inplace": "function(doc, req) {var field = req.query.field;var value = req.query.value;var message = 'set '+field+' to '+value;doc[field] = value;return [doc, message];}" } } call: http://user:pass@127.0.0.1:5984/mydatabase/_design/update/_update/inplace/mydoc?field=unixdate&value=1515668176
Reply
Anonymous
Information Epoch 1732679189
Save trees.
Home
Notebook
Contact us