You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Deistl Ross <de...@me.com> on 2010/08/25 01:03:53 UTC

validation oldDoc

The oldDoc id should be passed to the validation function per the wiki as part of the http request.  How is that oldDoc id added to the http?  Is there a structure like "_design" or " _rev"  that should be used in the http string?

Re: validation oldDoc

Posted by J Chris Anderson <jc...@apache.org>.
On Aug 24, 2010, at 4:03 PM, Deistl Ross wrote:

> The oldDoc id should be passed to the validation function per the wiki as part of the http request.  How is that oldDoc id added to the http?  Is there a structure like "_design" or " _rev"  that should be used in the http string?

CouchDB handles getting the oldDoc to you in the function.

In all of the server-side CouchDB JavaScript, there is a log() function which will be helpful

log(oldDoc) and you'll see it in the couchdb logfile.

Chris