Type for the Values stored in the Reflection for Hooks
const postHooks: IHooksArray[] = Array.from(Reflect.getMetadata(DecoratorKeys.HooksPost, target) ?? []); Copy
const postHooks: IHooksArray[] = Array.from(Reflect.getMetadata(DecoratorKeys.HooksPost, target) ?? []);
The Function to add as a hooks
The Method to where this hook gets triggered
Optional
Options for Hooks
https://mongoosejs.com/docs/middleware.html#naming
Generated using TypeDoc
Type for the Values stored in the Reflection for Hooks
Example