I am trying to query by passing the variable id
in the query variable window. This results in an error "Variable \"$id\" of required type \"ID!\" was not provided."
When I run a different query without passing a variable in the query variable section it successfully returns results.
Why does one produce an error, but not the other?
You have to select the QUERY VARIABLES tab, and put the variable value there. You can check that in the attached image.
In the first screenshot you've typed JSON into the "HTTP Headers" tab, not the "Query Variables" tab. Clear out this section and type the JSON variables object into the correct tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With