postgrelize / AfterFind
Variable: AfterFind ​
constAfterFind:ModelStaticMethodDecorator
Defined in: src/decorators/hook-decorators.ts:410
Registers the decorated static method as an afterFind hook of the model (like Model.afterFind). 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 {
@AfterFind
static async onAfterFind(result: unknown, options: unknown) {}
}