pouchdb/express-pouchdb — pull request #69 by commandoline (2014-07-07 11:18:48+00:00)
Title: Adds validate_doc_update function support

Using the pouchdb-validation plug-in. Passes ``npm run pouchdb-test``. Currently just assumes admin party, so only useful for document validation, not user validation. But that can easily be added by supplying the right argument option in the db.put/post/bulkDocs/remove functions when session/security support is added. One downside: every write to the database takes a bit longer because every write needs to check if there are any design documents (which contain the validate_doc_update functions) are available. Probably acceptable (CouchDB does the same), but worth mentioning.