-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GraphQl):This PR fix a panic when we pass a single ID as a intege…
…r and expected type is [ID].We now coerce that to type array of string. (#7325) The following query was giving panic because here we passed ID as an int which is expected to be a string. query allStories { queryUser(filter: { id: 22 }) { stories { id text } } } We now added input coercion so that the ID type value will be coerced to string type. And if we give a slice of integer values to ID type variable then that will be coerced to slice of integer values.
- Loading branch information
1 parent
d2ea0e6
commit 5fa6796
Showing
3 changed files
with
153 additions
and
18 deletions.
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