Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add beforeInclude and afterInclude triggers #8486

Closed
3 tasks done
dblythy opened this issue Mar 29, 2023 · 2 comments
Closed
3 tasks done

Add beforeInclude and afterInclude triggers #8486

dblythy opened this issue Mar 29, 2023 · 2 comments
Labels
type:feature New feature or improvement of existing feature

Comments

@dblythy
Copy link
Member

dblythy commented Mar 29, 2023

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 or exclude to prevent certain keys being returned, or add additional query parameters to the include query.

Example Use Case

Alternatives / Workarounds

3rd Party References

@parse-github-assistant
Copy link

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@mtrezza mtrezza added the type:feature New feature or improvement of existing feature label Apr 9, 2023
@dblythy dblythy closed this as completed Sep 4, 2023
@mtrezza
Copy link
Member

mtrezza commented Sep 6, 2023

I assume this has been closed due to #8733, but does the afterFind trigger also run specifically for the include? Because this issue also suggested a separate afterInclude trigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants