Optional benchmarkOptional byOptional fieldsFields to update (defaults to all fields)
Optional hooksIf false the applicable hooks will not be called.
The default value depends on the context.
Optional individualRun before / after update hooks?. If true, this will execute a SELECT followed by individual UPDATEs. A select is needed, because the row data needs to be passed to the hooks
false
Optional limitHow many rows to update (only for mysql and mariadb)
Optional loggingA function that gets executed while running the query to log the sql.
Optional timing: numberOptional middlewareOptional paranoidIf true, only non-deleted records will be returned. If false, both deleted and non-deleted records will
be returned. Only applies if options.paranoid is true for the model.
Optional returningReturn the affected rows (only for postgres)
Optional sideWhether or not to update the side effects of any virtual setters.
true
Optional silentIf true, the updatedAt timestamp will not be updated.
Optional updatableOptional validateShould each row be subject to validation before it is inserted. The whole insert will fail if one row fails validation.
true
Pass query execution time in milliseconds as second argument to logging function (options.logging).