You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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.
The text was updated successfully, but these errors were encountered:
Sounds like a good one to consider indeed. I think it applies to any @SchemaMapping method, not just queries.
rstoyanchev
changed the title
Enhance schema introspection on query argument mismatch
Enhance schema introspection to report @Argument name mismatch
Jun 28, 2023
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:
And this is example controller:
@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.The text was updated successfully, but these errors were encountered: