Closed
Description
For me, are the same.
There any way to get the value directly in to the map?
For the request
mutation updateUser(input: { name: "updated" } )
mutation updateUser2(input: { name: "updated" } )
Actual
@MutationMapping
fun updateUser(@Argument input: Map<String, Any) {
val name = input.get("input")?.get("name")
}
@MutationMapping
fun updateUser2(@Arguments input: Map<String, Any) {
val name = input.get("input")?.get("name")
}
I see more logical this
@MutationMapping
fun updateUser(@Argument input: Map<String, Any) {
val name = input.get("name")
}
@MutationMapping
fun updateUser2(@Arguments input: Map<String, Any) {
val name = input.get("input")?.get("name")
}