How to do partial update of a document

Partial updates are not supported by CouchDB. In other words, to update a field in the document, you must update the field in your local JSON document and push that document to CouchDB as a whole.

You can accomplish this by still issuing an HTTP PUT, ensuring the appropriate _rev is included in your document.

More details are available in the wiki.


It is possible to support partial updates by writing your own update function.

To be clear, it not actually a truly partial update. It still update the whole target document into new revision. But the update was done directly on the database itself. And so you could specified update partially on client side instead of retrieving and sending the whole document