-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return 400 on unknown operation name (version 4) (#6652)
Specifically handle the cases where an operation couldn't be resolved (either due to an incorrect operationName or a missing operationName in the presence of two operations). In these cases, we know that buildExecutionContext will return a single error and we know this is a client error. We can end execution and respond with a 400 along with a useful error code and the error from graphql-js. This previously worked in v3 but regressed during our implementation of v4.
- Loading branch information
1 parent
50522b8
commit 589aef4
Showing
3 changed files
with
148 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters