-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Clarify 'before execution begins' in response #894
base: main
Are you sure you want to change the base?
Conversation
✔️ Deploy Preview for graphql-spec-draft ready! 🔨 Explore the source changes: d7eaf72 🔍 Inspect the deploy log: https://app.netlify.com/sites/graphql-spec-draft/deploys/616dc0d8a0d0a900078fad6b 😎 Browse the preview: https://deploy-preview-894--graphql-spec-draft.netlify.app/draft |
6dedfe9
to
d7eaf72
Compare
I guess the question is why (or why not) some errors should be considered Request errors, for example, submitting a mutation operation when no mutation root type exists. it is the fault of the graphql user, so should be considered a request error by the rough explanation given, but it does not occur during the executing requests section. |
But if you don’t validate, you can get user errors during field execution so ??? |
For that specific case that should be something raised during validation; the |
@IvanGoncharov that definition while clean is a bit circular, whether or not a path should be empty depends on whether we have started execution… |
My second attempt, to produce "non-confusing criteria" 😄 |
I think that's a fair assessment: |
This is cleared up in the "Errors" -> "Request errors" section just 20 lines later, but for people dipping in to see what should happen with "data" it may not be obvious that the concept of "before execution begins" and that of entering the "Executing Requests" and/or "Executing Operations" sections differs due to the subtlety of when "request errors" can be raised.