Let's say my GraphQl server have a query defined like this
query getUser(name: String!)
then I make a query like this
query getUser(name: String) {
getUser(name: $name)
...
I get an error like this
Variable type 'String' doesn't match expected type 'String!
Why he is trying to match that instead of check if the value was already passed? The way I see it this is unnecessary and forces the client app to change for stupid reasons. Maybe I am missing something here.