incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <>
Subject Re: Can a validation function alter the new document?
Date Tue, 08 Feb 2011 20:20:50 GMT
On Tue, Feb 8, 2011 at 3:17 PM, George Burt <> wrote:
> Just thought I would ask.  If not, is there any way to apply javascript to
> the document before it is saved (from inside couchDB).
> -- George

No, you can't edit docs from validation functions.

You can use _update handlers to do some stuff, but you have to use
them as the endpoint, there's nothing that hooks into the normal PUT
document code paths.

View raw message