couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Chris Anderson <>
Subject Re: validation oldDoc
Date Tue, 24 Aug 2010 23:20:19 GMT

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.

View raw message