Skip to content

Is @InputArgument necessary for each type parameter of a query? #529

Answered by paulbakker
albertogdd asked this question in Q&A
Discussion options

You must be logged in to vote

When no annotation is found, there is some fallback logic that tries to match the arguments by name. This only works if the compiler settings preserve argument names, so it's not recommended to rely on it.

I'm not sure why in your example it didn't work with @InputArgument. Assuming the schema and query were defined correctly that should definitely work.
We did make some significant changes in the latest release candidate (4.6.0-rc.5), which improves how input arguments are processed. Might be worth trying with that release.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by albertogdd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants