Skip to content

postgrelize / InstanceUpdateOptions

Type Alias: InstanceUpdateOptions<T> ​

InstanceUpdateOptions<T> = SaveOptions<T>

Defined in: src/model/write-options.ts:203

Options of the instance updates that association accessors run (Sequelize v6 InstanceUpdateOptions): the SaveOptions.

Type Parameters ​

T ​

T = Values

Example ​

ts
const options: InstanceUpdateOptions<User> = { fields: ['name'], transaction };
await user.update({ name: 'Ann' }, options);

Released under the MIT License.