Martin Brehovsky
10/28/2022, 7:05 PMID
there. However this is where I hit another problem. I have a mutation which takes input form like this:
class MyInput(
val id: ID,
val value: String?
)
The mutation is then defined as
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?Martin Brehovsky
10/29/2022, 9:16 AM