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
Since the update to apollo-compiler 0.9.0, we have new validation errors that do not seem valid.
Considering the schema like:
type Query { category( "Queries with specified ID" id: String, "Queries with specified key" key: String): Category }
The following query:
query CategoryByKey($key: String!){ category(key: $key) { id, key, name(locale:"en") } }
with the key as variable is not valid anymore. It fails with variable keycannot be used for argumentkey as their types mismatch
variable
cannot be used for argument
as their types mismatch
Changing the query to:
query CategoryByKey($key: String){ category(key: $key) { id, key, name(locale:"en") } }
works.
Not 100% sure, but a mandatory variable can be used for an optional argument.
The text was updated successfully, but these errors were encountered:
yeppp looks like a bug! thanks for reporting
Sorry, something went wrong.
lrlna
Successfully merging a pull request may close this issue.
Description
Since the update to apollo-compiler 0.9.0, we have new validation errors that do not seem valid.
Steps to reproduce
Considering the schema like:
The following query:
with the key as variable is not valid anymore.
It fails with
variable
keycannot be used for argument
keyas their types mismatch
Changing the query to:
works.
Expected result
Not 100% sure, but a mandatory variable can be used for an optional argument.
The text was updated successfully, but these errors were encountered: