On 20 December 2011 21:42, Jim Klo <[email protected]> wrote:
> That's good - I was having a hard time understanding if that was source or 
> destination.
>
> In my case we have multiple design docs in the same db.  Do all the 
> validate_doc_update functions (one in each design doc) get executed, or does 
> one specifically get executed? if the later how does selection happen?

All are run, and all must return true for the doc to be accepted.

> Also if I'm using CouchApp to push - do I just place a file named 
> validate_doc_update.js in the root of my app, or do I need to do that in the 
> couchapp.json?

Yes.

These 2 links might be handy:
http://mindeavor.com/blog/the-anatomy-of-a-couchapp
https://github.com/jchris/couchapp.org/blob/master/validate_doc_update.js

A+
Dave

Reply via email to