We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Hot Chocolate v11 I could skip a variable with a default value, like in this query:
query test($a: Boolean = true, $b: Boolean = true) { apiInformation { version @include(if: $a) startDate @include(if: $b) } }
In v12, this doesn't work
{ "errors": [ { "message": "The variable with the name `a` does not exist." } ] }
{ "data": { "apiInformation": { "version": "1.0.0.417", "startDate": "2021-10-04T09:34:52.186+02:00" } } }
No response
Hot Chocolate
12.0.1
The text was updated successfully, but these errors were encountered:
Extra note: when the variables are required, the following error is given in V12:
{ "errors": [ { "message": "Variable `a` is required.", "locations": [ { "line": 1, "column": 12 } ], "extensions": { "code": "HC0018", "variable": "a" } } ] }
With V11, that query worked as well.
Sorry, something went wrong.
michaelstaib
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
Describe the bug
In Hot Chocolate v11 I could skip a variable with a default value, like in this query:
In v12, this doesn't work
Steps to reproduce
Relevant log output
Additional Context?
No response
Product
Hot Chocolate
Version
12.0.1
The text was updated successfully, but these errors were encountered: