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
fieldA and fieldB must have identical sets of arguments.
In general, GraphQL validation doesn't take to account runtime values of query variables.
But in this case, it's boolean so both options are mutually exclusive so you are completely right that it can be statically analyzed.
However, we need to consider the complexity and runtime cost of such deep analyzes.
Taking into account that aliases were added to support querying the same field multiple times (see examples) and not as a response transformation mechanism, I don't think it's worth the added complexity and performance penalties.
But in any case, we can't change validation algorithm without change to GraphQL specification so if you still think it's important for GraphQL to handle this use case please open an issue here: https://github.com/graphql/graphql-spec
Hi! So I am actually not sure if this is a bug or not. But seems logical to me. I have the following query:
(you can try it here)
As you can see, this query will either return variant A or variant B so always only one ID. However, GraphQL compains with the following error:
But this situation will never happen. Is it maybe a bug in some validator?
The text was updated successfully, but these errors were encountered: