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

Execute root fields rules prior graphql execute phase #1477

Open
Tracked by #1485
dimatill opened this issue Oct 28, 2022 · 0 comments
Open
Tracked by #1485

Execute root fields rules prior graphql execute phase #1477

dimatill opened this issue Oct 28, 2022 · 0 comments
Milestone

Comments

@dimatill
Copy link
Collaborator

Root field rules that aren't dependent on the parent could be executed before any of resolvers logic is executed.

There is no way to execute rules assigned to Objects or non-root Fields prior to the execution phase because of the inability to determine the actual type of Unions before the execution phase.

Rules could be executed in the validation phase or just before graphql.js execute call.

@dimatill dimatill added this to the v8.x milestone Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant