Optional
benchmarkPass query execution time in milliseconds as second argument to logging function (options.logging).
Optional
fieldsFields to update (defaults to all fields)
Optional
hooksIf false
the applicable hooks will not be called.
The default value depends on the context.
true
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, Implemented as TOP(n) for MSSQL; for sqlite it is supported only when rowid is present
Optional
loggingA function that gets executed while running the query to log the sql.
Optional
paranoidIf true, only non-deleted records will be returned. If false, both deleted and non-deleted records will be returned.
Only applies if paranoid is true for the model.
true
Optional
returningReturn the affected rows (only for postgres)
false
Optional
sideWhether to update the side effects of any virtual setters.
true
Optional
silentIf true, the updatedAt timestamp will not be updated.
Optional
transactionThe transaction in which this query must be run.
If CLS is enabled and a transaction is running in the current CLS context, that transaction will be used, unless null or a Transaction is manually specified here.
Optional
validateShould each row be subject to validation before it is inserted. The whole insert will fail if one row fails validation.
true
Options to describe the scope of the search.
Generated using TypeDoc
Options used for Model.update