graphiql-app icon indicating copy to clipboard operation
graphiql-app copied to clipboard

Schema is not loaded when using GET method

Open martinek opened this issue 7 years ago • 1 comments

Schema loading fails for me unless POST method is used.

Schema loading is not using any variables so graphQLParams['variables'] = "{}" is called. That is later JSON.stringified and graphql returns error:

Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.

martinek avatar Jul 25 '17 12:07 martinek

Happy to take a PR to support GET requests!

skevy avatar Jul 27 '17 18:07 skevy