Middleware (Hooks)
#
WIP#
Document Hooks#
Init Hook- Supports pre/post
- Must be an instance method
- Does not support async operation
#
Validate, Save, Remove, DeleteOne, UpdateOne Hooks- Supports pre/post
- Must be an instance method
- Support async operation
#
Model Hooks#
InsertMany Hook- Supports pre/post (different signatures)
- Must be a static method
- Support async operation
#
Aggregation HooksTBD
#
Query HooksTBD