We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05a6ac1 commit 4fa90a5Copy full SHA for 4fa90a5
kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/structure/SchemaCompilation.kt
@@ -332,8 +332,9 @@ class SchemaCompilation(
332
}
333
334
return operation.argumentsDescriptor.map { (name, kType) ->
335
- val kqlInput = inputValues.find { it.name == name } ?: InputValueDef(kType.jvmErasure, name)
336
- val inputType = handlePossiblyWrappedType(kType, TypeCategory.INPUT)
+ val inputValue = inputValues.find { it.name == name }
+ val kqlInput = inputValue ?: InputValueDef(kType.jvmErasure, name)
337
+ val inputType = handlePossiblyWrappedType(inputValue?.kClass?.starProjectedType ?: kType, TypeCategory.INPUT)
338
InputValue(kqlInput, inputType)
339
340
0 commit comments