Open ronen1malka opened 5 years ago
Here is the graphQL documentation -
In order to support "application/graphql" content type header, it needs to treat the HTTP POST body contents as the GraphQL query string.
It looks like, "query" is treated as JSON instead of GraphQL query.
Checkout - https://stackoverflow.com/a/56615072/2500390
How can I use GraphiQL to query? I can query using Postman, but GraphiQL show and error:
And in the app console I can see the following error:
graphql.GraphQL : Executing request. operation name: null. Request: {"query":"{\n\n\n\tbook (id: \"111\"){\n\t\tisn\n\t\ttitle\n\t\tauthors\n\t}\n\n\n}","variables":null,"operationName":null}
It seems that GraphiQL add "query" at the top of the request.