-
-
Notifications
You must be signed in to change notification settings - Fork 566
Support both string and array variables recieved #230
New issue
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
Comments
Please post the reproducible example of the code which causes this. |
@vladar Sorry, I just realised I wrote the bug report saying strings aren't supported, it should be corrected to arrays aren't supported. I've edited the post. sending a request from a typescript app:
These are the contents of a
These are the contents when the object array is JSON stringified (not working):
|
How do you run graphql-php? Using |
Closing due to inactivity, feel free to re-open with new data. |
Hi! I have this problem. Error (addon GraphIQL Feen! generate query) |
Uh oh!
There was an error while loading. Please reload this page.
Currently only arrays are supported.
When sent a request with arrays as variables I get the following error:
body: { error: { message: 'Argument 1 passed to GraphQL\\Validator\\Rules\\QueryComplexity::setRawVariableValues() must be of the type array, string given, called in /portal/library/composer/webonyx/graphql-php/src/GraphQL.php on line 62 and defined' } } }
.Any reason why only arrays are allowed if this is intentional? If not it should support both formats.
The text was updated successfully, but these errors were encountered: