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
Is it possible to parse the query and use variables outside the actual query?
For example, the following query is parsed correctly:
query Hero($episode: Episode, $withFriends: Boolean!) {
hero(episode: $episode) {
name
friends @include(if: $withFriends) {
name
}
}
}
However, I did not found a way to use those variables as part of the parsing process:
{
"episode": "JEDI",
"withFriends": false
}
In my understanding, the query has to be modified with those variables (use them as default variables in this query) in order for the string to be successfully parsed with "graphql_parse_string" function.
Thanks.
The text was updated successfully, but these errors were encountered:
Is it possible to parse the query and use variables outside the actual query?
For example, the following query is parsed correctly:
However, I did not found a way to use those variables as part of the parsing process:
In my understanding, the query has to be modified with those variables (use them as default variables in this query) in order for the string to be successfully parsed with "graphql_parse_string" function.
Thanks.
The text was updated successfully, but these errors were encountered: