Delete document field before saving to CouchDB?

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

+5
source share
1 answer

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 .

+5
source

All Articles