I am sending documents to couchdb and I want to remove the doc.phone field if this value is null before saving.
Is this possible without using the _update handler, since I want the request to look like this: POST / db
Unfortunately, the validation features do not allow you to mutate the document. (he can accept or decline the entry)
However, if you are interested in a URL, perhaps you can use the update handler in conjunction with URL Rewrites .