Skip to content

Fix(GraphQL): Fix __typename result along with aggregate fields #7687

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

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

vmrajas
Copy link
Contributor

@vmrajas vmrajas commented Apr 6, 2021

Motivation:
Related Discuss Post: https://discuss.dgraph.io/t/dgraph-returns-empty-string-for-typename-when-coupled-with-aggregate-edge/13548

The PR uses different name for ok variable. The bug occurred because the same variable was used twice. At the time of getting dgraph type from result and getting count result.

Fixes GRAPHQL-1142


This change is Reviewable

@vmrajas vmrajas requested a review from pawanrawal as a code owner April 6, 2021 18:04
@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label Apr 6, 2021
@vmrajas vmrajas merged commit 0bb10d6 into release/v20.11 Apr 7, 2021
@vmrajas vmrajas deleted the rajas/GRAPHQL-1142 branch April 7, 2021 09:29
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