Skip to content

Enhance schema introspection to report @Argument name mismatch #740

Closed
@smilyanovr

Description

@smilyanovr

Sometimes it is easy to make a mistake with argument names in @QueryMapping methods. This is not reported by schema introspection and error will bubble up on query execution.

Here is a sample schema:

type Query {
    getVehicle(id: ID): Vehicle
}

And this is example controller:

@Controller
class VehicleController {
  
    @QueryMapping
    fun getVehicle(@Argument vehicleId: String) = null
}

@Argument allows to map the argument name internally, though it will be really nice to see such kind of mismatch reported by schema introspection report.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions