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

Map unknown fields to additionalInformation in GraphQLErrorDebugInfo … #1609

Merged
merged 1 commit into from
Aug 23, 2023
Merged

Conversation

bradmeintjes
Copy link
Contributor

…(#1600)

Pull request checklist

  • Please read our contributor guide
  • Consider creating a discussion on the discussion forum
    first
  • Make sure the PR doesn't introduce backward compatibility issues
  • Make sure to have sufficient test cases

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Changes in this PR

Captures unmapped/unknown key-values in the error.extensions.debugInfo as addtionalInformation field instead of ignoring them during deserialization.

Issue #1600
Discussion: #1599

Alternatives considered

Describe alternative implementation you have considered

@srinivasankavitha
Copy link
Contributor

Thanks for the PR! The changes are looking good. Are you also able to verify that the changes don't break compatibility with existing usages of the debug info?

@bradmeintjes
Copy link
Contributor Author

@srinivasankavitha I have added a test which I believe covers the backward compat as well, there unfortunately wasn't a test covering it beforehand. If you can think of any edge cases I may have missed then please let me know

@srinivasankavitha srinivasankavitha merged commit 680bf6d into Netflix:master Aug 23, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants