couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcello Nuccio <marcello.nuc...@gmail.com>
Subject Allowed contents of validate_doc_update field.
Date Tue, 04 Oct 2011 08:35:41 GMT
Is it supported to put anything other than an anonymous function in
the validate_doc_update field of a design document?

For example:

    var a = /bla/;
    function (doc, oldDoc, userCtx, secObj) {
        if (!a.test(doc._id)) ...
    }

is it supported or it can work only by coincidence.

Thanks,
  Marcello

Mime
View raw message