I have a CouchDB update handler and would like it to return a response similar to a regular document PUT or POST. So something along the lines of the following on a successful update.
{"ok": true, "id": "some_doc_id", "rev": "1-cc44942419c99df052314874d120e316"}
The problem is that in the update handler Javascript code I only have access to the current revision. I need the response to return the version after the update occurs. In this case it would be revision 2.
Can I somehow get access to the new revision in my update handler?