Skip to content

postgrelize / AfterBulkUpdate

Variable: AfterBulkUpdate ​

const AfterBulkUpdate: ModelStaticMethodDecorator

Defined in: src/decorators/hook-decorators.ts:287

Registers the decorated static method as an afterBulkUpdate hook of the model (like Model.afterBulkUpdate). The method receives the hook arguments; static methods only. Registered when sequelize.addModels applies the class. Accepts the TC39 and the legacy experimentalDecorators call signature.

Example ​

ts
class User extends Model {
  @AfterBulkUpdate
  static async onAfterBulkUpdate(options: unknown) {}
}

Released under the MIT License.