It seems not supoort enum
Closed this issue · 7 comments
chank commented
I defined the following schema:
enum VerificationEnum {
PHONE
EMAIL
}
type VerificationPayload {
verificationType: VerificationEnum
}
I used it with spring, but it failed with the following Exception:
Caused by: graphql.GraphQLException. type VerificationEnum not found in schema
brimworks commented
Can you provide more information? Perhaps an easy way to reproduce the problem? enums work in our unit tests:
Thanks,
-Brian
chank commented
I use it with spring boot.
chank commented
This is a demo project.
gdelafosse commented
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.
brimworks commented
seetharamani commented
@brimworks I verified this fix and it works fine. Thank you!
brimworks commented
Released as version 4.0.0.