Can I request views from couchdb update or validate_doc_update?

To check for document updates, I need the result of viewing. This view generates a sum.

Can I request this view from my validate_doc_update function so that I can use the view result to validate the document?

+3
source share
1 answer

Short answer: no, you cannot. (at least for now)

For validation functions, you have access only to the current document, incoming document, and current user information. (if available)

Update handlers have access to information about the incoming request, as well as about the current document.

+1
source

All Articles