Closed jeggy closed 4 years ago
Currently this setup throws this exception: java.lang.UnknownError: Something went wrong while searching for the constructor parameter type
java.lang.UnknownError: Something went wrong while searching for the constructor parameter type
data class MyInput(val value1: String) val schema = KGraphQL.schema { query("main") { resolver { input: MyInput -> "${input.value1}!!!"} } } schema.executeBlocking(""" { main(input: { valu1: "Hello" }) } """.trimIndent()).let(::println)
It should throw a better error than just a UnknownError with no helpful message.
UnknownError
What about GraphQLError: Constructor Parameter 'valu1' can not be found in 'MyInput' ?
GraphQLError: Constructor Parameter 'valu1' can not be found in 'MyInput'
Sounds good 😃
Has been solved and released in version 0.15.2
0.15.2
Currently this setup throws this exception:
java.lang.UnknownError: Something went wrong while searching for the constructor parameter type
It should throw a better error than just a
UnknownError
with no helpful message.