resolve
abstract fun <T> resolve( responseName: String, compiledType: CompiledType, enumValues: List<String>, ctors: Array<out () -> Map<String, Any?>>?): T
Content copied to clipboard
Resolve the given field
Return
T the Kotlin value for the field. Can be Int, Double, String, List or Map or null
Parameters
responseName
the name of the field as seen in the json
compiledType
the GraphQL type of the field
enumValues
if compiledType is an enum, the list of possible values
ctors
if compiledType is a composite type or any non-null or list combination of a composite type, ctors contain a list of constructors for the possible shapes