Error with Custom Scalar #198
-
Hi, I was trying to test a custom scalar. I followed the documentation The problem is that when adding the custom Scalar to a type, the generated Kotlin class shows an "unresolved reference," and I don't see any Kotlin class generated for the new custom scalar. My implementation for the scalar included:
I looked into the Kotlin example project, but the scalar added in that project was an extension of the Graphql deprecated types. I suspect that something is missing in my implementation/docs. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If you have existing Java/Kotlin types you want to use (instead of generating them), you need to have a
That should fix it! |
Beta Was this translation helpful? Give feedback.
If you have existing Java/Kotlin types you want to use (instead of generating them), you need to have a
typeMapping
in your codegen configuration.For example:
That should fix it!