Add beforeInclude
and afterInclude
triggers
#8486
Labels
type:feature
New feature or improvement of existing feature
beforeInclude
and afterInclude
triggers
#8486
New Feature / Enhancement Checklist
Current Limitation
When an object is included, normal beforeFind and afterFind triggers do not run on that class. Therefore, to restrict included fields, you need to apply the restrictions on the parent class.
Feature / Enhancement Description
Add a beforeInclude / afterInclude trigger that can be used to enforce
select
orexclude
to prevent certain keys being returned, or add additional query parameters to the include query.Example Use Case
Alternatives / Workarounds
3rd Party References
The text was updated successfully, but these errors were encountered: