Unfortunately I hit another roadblock. While I was...
# graphql-kotlin
m
Unfortunately I hit another roadblock. While I was able to do use the wrapper for all output fields, it does not work for the input fields, but I thought this is not a problem - I can keep using regular
ID
there. However this is where I hit another problem. I have a mutation which takes input form like this:
Copy code
class MyInput(
  val id: ID,
  val value: String?
)
The mutation is then defined as
Copy code
fun updateMyStuff(env: DataFetchingEnvironment, input: MyInput) {}
This pattern worked fine with graphql-kotlin 5x, however after upgrading to 6.x I'm getting this error:
exception message: This callable does not support a default call: public constructor MyInput
It looks like this is caused by this issue with the value types: https://youtrack.jetbrains.com/issue/KT-27598/KotlinReflectionInternalError-when-using-callBy-on-constructor-that-has-inline-class-parameters Has anyone seen this before? Any suggestion how to fix this?
Looks like this issue went away when I upgraded to Kotlin 1.70.20.