On Mon, Nov 18, 2013 at 3:04 PM, Hank Knight <[email protected]> wrote: > I understand that I can pass information using an update handler like this: > > http://127.0.0.1:5984/my_database/_design/my_designdoc/_update/in-place-query/mydocId?field=title&value=test > > Is there a way to use POST data with an update handler?
Yes, you leave out the docid as in http://wiki.apache.org/couchdb/Document_Update_Handlers and include your data in the body of the request, if you want to use this to generate a new document. See, e.g. https://github.com/mgmarino/nEDM-Interface/blob/master/_default/lib/updates.js For an example of pulling all the data into the new document. (It uses the req.uuid as the new doc's _id, which may or may not be good for your case.)
