postgrelize / BeforeFindAfterExpandIncludeAll
Variable: BeforeFindAfterExpandIncludeAll ​
constBeforeFindAfterExpandIncludeAll:ModelStaticMethodDecorator
Defined in: src/decorators/hook-decorators.ts:377
Registers the decorated static method as a beforeFindAfterExpandIncludeAll hook of the model (like Model.beforeFindAfterExpandIncludeAll). 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 {
@BeforeFindAfterExpandIncludeAll
static async onBeforeFindAfterExpandIncludeAll(options: unknown) {}
}