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 when trying to delete a nested object which doesn't have id/xid #6810

Merged
merged 2 commits into from
Nov 3, 2020

Conversation

pawanrawal
Copy link
Contributor

@pawanrawal pawanrawal commented Oct 29, 2020

Fixes GRAPHQL-745.

While doing an updateMutation, when the linked object didn't have an id or xid our code was panicking. This change fixes that behavior by returning an error instead.


This change is Reviewable

@pawanrawal pawanrawal changed the title Fix panic caused when trying to delete a nested object which doesn't have id/xid fix(GraphQL): Fix panic caused when trying to delete a nested object which doesn't have id/xid Oct 29, 2020
@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label Oct 29, 2020
Copy link
Contributor

@abhimanyusinghgaur abhimanyusinghgaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 4 of 4 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @MichaelJCompton)

@pawanrawal pawanrawal merged commit d840c39 into master Nov 3, 2020
@pawanrawal pawanrawal deleted the pawan/graphql-745 branch November 3, 2020 06:15
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