Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upException in thread "main" graphql.AssertException: Internal error: should never happen: Directive values of type 'EnumValue' are not supported yet #411
Comments
|
Thanks for reporting this. This will be likely fixed in the next version when we support GraphQL Java 15. |
|
hi @vojtapol thanks for the response! Is there any kind of timeline or ETA on when that may be? Thanks! |
|
@vojtapol do you know which version this would be fixed in? we're trying to plan around the fix. |
|
@jamesmartinpp We may need to do a significant rewrite to fix all the issues around directives. In general, we need to defer more work to |
This is an exception that is thrown by graphql-java when called from graphql-java-tools. The problem, however, is due to the way graphql-java-tools is using the graphql-java library internal API.
This is evidenced in this issue in graphql-java for a PR created to attempt to fix this issue: graphql-java/graphql-java#1706
Tools does not pass a directiveDefinition -- which is never mapped at any point in the SchemaParser
https://github.com/graphql-java-kickstart/graphql-java-tools/blob/master/src/main/kotlin/graphql/kickstart/tools/SchemaParser.kt#L163
And this causes graphql-java to use a code path that, according to them, is dead code and actually is removed in v15.
I created a test application to demonstrate this issue here: https://github.com/dspenceb/graphqltest
For quick reference, the schema:
wiring:
Stack: