Issues mapping Enum "typeMapping" #1358
evanmalmud
started this conversation in
General
Replies: 2 comments
-
So without the DGSScalar or any Coercing the mapping is generated into the parent codegen classes and all seems to functions correctly. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just following up here - there may have been some initial confusion. There isn't an issue with the maven community version of the codegen plugin. Adding an entry for the GraphQL => Java enum in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So Im trying to make the dgs code gen (maven community version) typeMapping from a enum in graphql to a java enum.
Im having issues getting this to map and startup correctly. Once i add @DgsScalar to the enum i get an error about missing a String java bean. Which makes me thing its not possible to map an enum this way.
Was trying to add the coercing implementation to the java type as well but without DGSScalar i figure this wont help.
My java enum -
Graphql Enum -
Beta Was this translation helpful? Give feedback.
All reactions