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
I'm using a React App on the front end to communicate with the CraftQL API endpoint, I'm also using the graphql.js library to make the requests.
I'm getting this error:
Argument 1 passed to GraphQL\Validator\Rules\QueryComplexity::setRawVariableValues() must be of the type array or null, string given, called in /var/www/vendor/webonyx/graphql-php/src/GraphQL.php on line 137
The request is set up on the front end as follows:
vargetEntries=graph(`query fetchSection($section:[SectionsEnum]) { entries(section:$section) { ... on Blog{ id title body { content } blogCategory { title } blogTags { title } } } } `)getEntries({section: 'blog'})
The issue seems to be that that the POST variables data is not json_decoded like the GET variables in ApiController.php:
I'm using a React App on the front end to communicate with the CraftQL API endpoint, I'm also using the graphql.js library to make the requests.
I'm getting this error:
The request is set up on the front end as follows:
The issue seems to be that that the POST variables data is not json_decoded like the GET variables in ApiController.php:
Should be:
Related #71
The text was updated successfully, but these errors were encountered: