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

Improve exception message for InvalidTypeResolverException #1118

Merged
merged 8 commits into from
Jun 25, 2022

Conversation

springmonster
Copy link
Contributor

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): Improve exception message for InvalidTypeResolverException

Changes in this PR

Improve exception message for InvalidTypeResolverException

Describe the new behavior from this PR, and why it's needed
Issue #312

Alternatives considered

  1. Provide GraphQL interface type in exception message
  2. Provide ObjectNode which needs to be mapped by type resolver

@springmonster
Copy link
Contributor Author

Dear @berngp , could you please help to check this PR?
Does the enhancement of information meet the requirements?
Thanks very much!

… into invalid-type-resolver-exception

# Conflicts:
#	graphql-dgs/src/main/kotlin/com/netflix/graphql/dgs/internal/DgsSchemaProvider.kt
#	graphql-dgs/src/test/kotlin/com/netflix/graphql/dgs/DgsSchemaProviderTest.kt
@berngp berngp merged commit c07e1e9 into Netflix:master Jun 25, 2022
@berngp
Copy link
Contributor

berngp commented Jun 25, 2022

Thank you @springmonster

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