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

Type name validation #274

Merged
merged 3 commits into from
Mar 11, 2020
Merged

Type name validation #274

merged 3 commits into from
Mar 11, 2020

Conversation

ghostdogpr
Copy link
Owner

@ghostdogpr ghostdogpr commented Mar 10, 2020

Closes #170

  • Moves check to GraphQLInterpreter
  • Verifies that each type is defined only once (e.g. case classes from different packages or an object used as OBJECT and INPUT_OBJECT at the same time).
  • Allows defining an empty root query (useful when you break your API in multiple parts and combine them). Will return an error when calling interpreter if there is no root query.

@ghostdogpr ghostdogpr merged commit 63e6174 into master Mar 11, 2020
@ghostdogpr ghostdogpr deleted the validate-schema branch March 11, 2020 00:18
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.

Type names validations
1 participant