Closed chank closed 5 years ago
Can you provide more information? Perhaps an easy way to reproduce the problem? enums work in our unit tests:
Thanks, -Brian
I use it with spring boot.
This is a demo project.
Hello, I reproduce too. It seems that the generator doesn't create a TypeResolver for the Enum. Your unit test only tests that the generation is successful and actually this error is visibile only at runtime.
Please verify this works as expected:
https://github.com/Distelli/graphql-apigen/pull/29
...the unit test makes it appear that this is fixed.
@brimworks I verified this fix and it works fine. Thank you!
Released as version 4.0.0.
I defined the following schema:
I used it with spring, but it failed with the following Exception: Caused by: graphql.GraphQLException. type VerificationEnum not found in schema