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 GraphQL encoding in case of empty list #7726

Merged
merged 2 commits into from
Apr 15, 2021

Conversation

vmrajas
Copy link
Contributor

@vmrajas vmrajas commented Apr 15, 2021

Motivation:
Current GraphQL encoding had a bug which led to timing out in case there is an empty list in dataset and it is queried before any non-null field. This fixes this behaviour.

Fixes DGRAPH-3257

Testing:

  1. The test times out (as expected) without the change to outputnode_graphql.go
  2. The test passes with the change to outputnode_graphql.go

This change is Reviewable

@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label Apr 15, 2021
@vmrajas vmrajas merged commit 9e8ab99 into master Apr 15, 2021
@vmrajas vmrajas deleted the rajas/DGRAPH-3257 branch April 15, 2021 06:19
vmrajas added a commit that referenced this pull request Apr 15, 2021
* Fix output node rewriting in case of null list

* Fix lint

(cherry picked from commit 9e8ab99)
vmrajas added a commit that referenced this pull request Apr 16, 2021
* Fix output node rewriting in case of null list

* Fix lint

(cherry picked from commit 9e8ab99)
OmarAyo pushed a commit that referenced this pull request May 20, 2021
* Fix output node rewriting in case of null list

* Fix lint

(cherry picked from commit 9e8ab99)
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