couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kocoloski <>
Subject Re: default values via validate_doc_update?
Date Sat, 13 Jun 2009 15:53:28 GMT
On Jun 13, 2009, at 11:44 AM, Wojciech Kaczmarek wrote:

> Hi!
> Is it possible to set attributes of a new doc within
> validate_doc_update? I think I've read about it, well, can't google it
> now and also it doesn't seem to work.. so was it my imagination?
> cheers,
> Wojtek

Hi Wotjek, it's not allowed because the document validation functions  
run during replication.  There's been talk of an _update handler that  
would serve this purpose.  It's not in trunk yet, though.  Cheers,


View raw message