OptionalbenchmarkPass query execution time in milliseconds as second argument to logging function (options.logging).
OptionalconnectionThe connection on which this query must be run. Mutually exclusive with Transactionable.transaction.
Can be used to ensure that a query is run on the same connection as a previous query, which is useful when configuring session options.
Specifying this option takes precedence over CLS Transactions. If a transaction is running in the current AsyncLocalStorage context, it will be ignored in favor of the specified connection.
OptionalfieldsFields to update (defaults to all fields)
OptionalhooksIf false the applicable hooks will not be called.
The default value depends on the context.
OptionalindividualRun 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
OptionallimitHow 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
OptionalloggingA function that gets executed while running the query to log the sql.
OptionalparanoidIf true, only non-deleted records will be returned. If false, both deleted and non-deleted records will be returned.
Only applies if InitOptions.paranoid is true for the model.
OptionalreturningReturn the affected rows (only for postgres)
OptionalsideWhether to update the side effects of any virtual setters.
OptionalsilentIf true, the updatedAt timestamp will not be updated.
OptionaltransactionThe transaction in which this query must be run. Mutually exclusive with Transactionable.connection.
If the Sequelize disableClsTransactions option has not been set to true, and a transaction is running in the current AsyncLocalStorage context, that transaction will be used, unless null or another Transaction is manually specified here.
OptionalvalidateShould each row be subject to validation before it is inserted. The whole insert will fail if one row fails validation.
Options to describe the scope of the search.
Options used for Model.update