manlan
07/29/2020, 6:56 PMjeggy
07/29/2020, 8:34 PMinputType<Address>()
now this will be included as a input type in your schema.
KGraphQL will also automatically pick up_(so no need to specify it with the inputType
)_ any input types that you provide to your resolvers.
Easiest way is to just provide it directly to your resolver like this
query("locationData") {
resolver { address: Address ->
println(address.city)
...
}
}
Example within the docs are here: https://kgraphql.io/Reference/resolver/#argumentsmanlan
07/30/2020, 9:59 AMjeggy
08/04/2020, 10:29 PMmutation {
locationData(address: { city: "Hometown", zipCode: "600" })
}
manlan
08/07/2020, 2:30 AM