Merge pull request #16 from zaeleus/graphiql-body
Fix graphQLFetcher body serialization
This commit is contained in:
commit
80a2aceb85
1 changed files with 1 additions and 4 deletions
|
@ -189,10 +189,7 @@ impl Handler for GraphiQLHandler {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify(params)
|
||||||
query: params.query,
|
|
||||||
variables: JSON.parse(params.variables || '{}')
|
|
||||||
}),
|
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
return response.text();
|
return response.text();
|
||||||
}).then(function (body) {
|
}).then(function (body) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue