Iam trying to update a property/ field of a document in couchbase using ottomanjs, while using updateById, updatemany, findOneAndUpdate getting a validation or hook error response , since iam trying to update only one field/property but ottoman expects all propeties of the document while validation and hooks execution and returns obivous error response.
is there a way to update a document in couchbase using ottomanjs only sending that paticular field/ property and skipping hooks and validations which was used implemented for document creation save().
The save() function triggers validate() hooks, because Ottoman has a built-in pre(‘save’) hook that calls validate(). This means that all pre(‘validate’) and post(‘validate’) hooks get called before any pre(‘save’) hooks. The updateById() function have the same behavior.