Fix graphQLFetcher body serialization
`params.variables` is already an object when passed to the fetcher and does not need to be parsed.
This commit is contained in:
parent
8620eb1e7a
commit
fe96029e3a
1 changed files with 1 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue