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
I'm trying to test a query in the GraphiQL client, but it doesn't recognize variables in the query. They are simply ignored. The OrderBy: works fine.
The query:
query getRegions ($start: Int, $end: Int) { iwRegions (range: [$start, $end], orderBy: name) { name } }
with variables:
{ "start": 0, "end": 4 }
returns:
{ "data": { "iwRegions": [ { "name": "Eastern Cape" }, { "name": "Garden Route" }, { "name": "Gauteng" }, { "name": "Kwazulu Natal" }, { "name": "Limpopo" }, { "name": "Mpumulanga" }, { "name": "Northern Cape" }, { "name": "Northwest Province" }, { "name": "Western Cape" } ] } }
If I hard-code the values as follows:
query getRegions { iwRegions (range: [0, 4], orderBy: name) { name } }
I get the correct response:
{ "data": { "iwRegions": [ { "name": "Eastern Cape" }, { "name": "Garden Route" }, { "name": "Gauteng" }, { "name": "Kwazulu Natal" }, { "name": "Limpopo" } ] } }
Any ideas?
Thanks, Adrian
The text was updated successfully, but these errors were encountered:
Seems to be a bug. I'll fix that asap.
Thank you for an excellent issue by the way! Clear issues like this with actual data and a reproduction are very rare 👍
Sorry, something went wrong.
Kind words indeed... Thank you for an awesome library, and happy bug-hunting :)
0e871f4
No branches or pull requests
I'm trying to test a query in the GraphiQL client, but it doesn't recognize variables in the query. They are simply ignored. The OrderBy: works fine.
The query:
with variables:
returns:
If I hard-code the values as follows:
I get the correct response:
Any ideas?
Thanks,
Adrian
The text was updated successfully, but these errors were encountered: