I’m POSTing a documents to couchdb and I want to remove doc.phone field if that is null before I save.
Is that possible without using _update handler since I want the request to look like: POST /db
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately, validation functions do not allow you to mutate the document. (it can only accept or reject a write)
However, if you are concerned with the url, perhaps you could use an update handler in conjunction with URL Rewrites.