You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2013/06/05 23:37:39 UTC
[Couchdb Wiki] Update of "Document_Update_Validation" by NathanVanderWilt
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The "Document_Update_Validation" page has been changed by NathanVanderWilt:
https://wiki.apache.org/couchdb/Document_Update_Validation?action=diff&rev1=9&rev2=10
Comment:
official docs link
<<Include(EditTheWiki)>>
= Document Update Validation =
+
+ See also the [[http://docs.couchdb.org/en/latest/ddocs.html#validate-document-update-functions|official documentation]] for this topic.
+
<<TableOfContents()>>
A design document may define a member function called "validate_doc_update". Requests to create or update a document are validated against every "validate_doc_update" function defined in the database. The validation functions are executed in an unspecified order. A design document can contain only one validation function. Errors are thrown as javascript objects.