⭐Hooks & Events
Custom before / after hooks make even more advanced APIs possible
Note: This is an early feature, use it with caution but it should work:
In case you want to add some custom behaviour to your API you can further extend the class with our so called hooks. These come for all CRUD events such as beforeCreate, afterUpdate, afterDelete etc. But have a look at this:
This can be done for all these events:
IBeforeUpdate, IBeforeCreate, IBeforeDelete
IAfterUpdate, IAfterCreate, IAfterDelete
We might add more event hooks later but these are the ones currently existing.
In each event you can access the database using the provided ApplicationDataService instance.
Last updated