Hi Stefan,

you absolutely should and can not rely on this behaviour, it might even
not be available in setups with other (more modern) JS interpreters.

Best
Jan
—
Professional Support for Apache CouchDB:
https://neighbourhood.ie/couchdb-support/

24/7 Observation for your CouchDB Instances:
https://opservatory.app

> On 26. May 2021, at 10:17, Stefan Klein <[email protected]> wrote:
> 
> Hi all,
> 
> i'm trying to prevent unintended changes to some documents.
> 
> While toying around with update & validate_doc_update functions, I found
> that, if i add a property to the `this` context of an update function, the
> `this` context of the validate_doc_update running after the update contains
> that property.
> 
> If I understand the couchdb & query server architecture correct I can not
> rely on this behavior. Or can I?
> 
> Thanks & regards,
> Stefan Klein

Reply via email to