Open ghost opened 13 years ago
I have generated an couchapp folder.
Where do I put validate_doc_update function?
At the root of the couchapp document; in coffee-script terms:
ddoc = _id: "_design/app' module.exports = ddoc ddoc.validate_doc_update = (newDoc, oldDoc, userCtx) -> # Do something here
I have generated an couchapp folder.
Where do I put validate_doc_update function?