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: Handle errors generated in fields thunk #66

Conversation

AndrewSisley
Copy link
Contributor

@AndrewSisley AndrewSisley commented Nov 30, 2021

Closes #53

The new version of the fork (in review sourcenetwork/graphql-go#2) stores errors from the thunk onto object.err (accessed publicly via object.Errors().

To do before merge:

  • Update go.mod after the linked review is merged, so that it points at the fork's develop branch

@AndrewSisley AndrewSisley added bug Something isn't working area/schema Related to the schema system labels Nov 30, 2021
@AndrewSisley AndrewSisley self-assigned this Nov 30, 2021
@AndrewSisley AndrewSisley linked an issue Nov 30, 2021 that may be closed by this pull request
@jsimnz
Copy link
Member

jsimnz commented Nov 30, 2021

Merged the updates on the sourcenetwork/graphql-go fork. Does anything need to change here (ie go.mod stuff) before merging?

@jsimnz
Copy link
Member

jsimnz commented Nov 30, 2021

nvm, I see you already marked that as an outstanding task. Ill let you take care of it 👍, ping me if/when another review is needed

Copy link
Member

@jsimnz jsimnz left a comment

Choose a reason for hiding this comment

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

LGTM

@AndrewSisley AndrewSisley force-pushed the sisley/fix/I53-error-handling-in-fields-thunk-updated-fork branch from 796c955 to 998be84 Compare December 1, 2021 13:40
@AndrewSisley AndrewSisley merged commit 9056064 into develop Dec 1, 2021
@AndrewSisley AndrewSisley deleted the sisley/fix/I53-error-handling-in-fields-thunk-updated-fork branch December 1, 2021 13:43
@orpheuslummis orpheuslummis mentioned this pull request Jan 29, 2022
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
* Resolve fields in ResolveTypes function

* Include type name in type missing error

* Handle errors occuring during fields thunk resolution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/schema Related to the schema system bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error handling for GQL Object fieldThunk functions
2 participants