Skip to content

Error with Custom Scalar #198

Answered by paulbakker
jmbarroso asked this question in Q&A
Mar 26, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

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:

generateJava{
   typeMapping = ["MyGraphQLType": "com.mypackage.MyJavaType"]
}

That should fix it!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jmbarroso
Comment options

@paulbakker
Comment options

@jmbarroso
Comment options

Answer selected by jmbarroso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants