-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix(GraphQL): Fix panic caused by incorrect input coercion of scalar to list #7405
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 6 files reviewed, 2 unresolved discussions (waiting on @jatindevdg)
graphql/e2e/common/mutation.go, line 4833 at r1 (raw file):
{name: "Coercion of Scalar value at root to list ", query: ` mutation{ addpost1(input:{title:"GraphQL",commentsByMonth:1}){
add spaces and correct formatting
graphql/e2e/common/mutation.go, line 4889 at r1 (raw file):
{ "name": "Jack", "posts":[
fix formatting for response as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 10 files reviewed, 2 unresolved discussions (waiting on @manishrjain, @pawanrawal, and @vvbalaji-dgraph)
graphql/e2e/common/mutation.go, line 4833 at r1 (raw file):
Previously, pawanrawal (Pawan Rawal) wrote…
add spaces and correct formatting
added.
graphql/e2e/common/mutation.go, line 4889 at r1 (raw file):
Previously, pawanrawal (Pawan Rawal) wrote…
fix formatting for response as well
fixed.
We have moved some of the input coercion code to the library as part of the commit. I have also added tests to verify the fix.
Fixes-GRAPHQl-1006
This change is