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

fix(GraphQL): Fix panic caused by incorrect input coercion of scalar to list #7405

Merged
merged 5 commits into from
Feb 12, 2021

Conversation

JatinDev543
Copy link
Contributor

@JatinDev543 JatinDev543 commented Feb 7, 2021

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 Reviewable

@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label Feb 7, 2021
@pawanrawal pawanrawal changed the title fix(GraphQL): fix a panic and Move input coercion code to library and added tests. fix(GraphQL): Fix panic caused by incorrect input coercion of scalar to list Feb 12, 2021
Copy link
Contributor

@pawanrawal pawanrawal left a 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

Copy link
Contributor Author

@JatinDev543 JatinDev543 left a 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.

@JatinDev543 JatinDev543 merged commit a26993a into master Feb 12, 2021
@JatinDev543 JatinDev543 deleted the jatin/GRAPHQL-1006 branch February 12, 2021 09:44
JatinDev543 added a commit that referenced this pull request Feb 12, 2021
…to list (#7405)

Fixes-GRAPHQl-1006
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.

(cherry picked from commit a26993a)
JatinDev543 added a commit that referenced this pull request Feb 12, 2021
…to list (#7405) (#7428)

* fix(GraphQL): Fix panic caused by incorrect input coercion of scalar to list (#7405)

Fixes-GRAPHQl-1006
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.

(cherry picked from commit a26993a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graphql Issues related to GraphQL support on Dgraph.
Development

Successfully merging this pull request may close these issues.

2 participants