Skip to content

Drop special behavior for @Argument Map in favor of doing the same via @Arguments Map #548

Closed
@MiguelAngelLV

Description

@MiguelAngelLV

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")
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions