Merge pull request #16 from zaeleus/graphiql-body

Fix graphQLFetcher body serialization
This commit is contained in:
Magnus Hallin 2017-01-15 11:49:37 +01:00 committed by GitHub
commit 80a2aceb85

View file

@ -189,10 +189,7 @@ impl Handler for GraphiQLHandler {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
query: params.query,
variables: JSON.parse(params.variables || '{}')
}),
body: JSON.stringify(params)
}).then(function (response) {
return response.text();
}).then(function (body) {