Skip to content

Commit 80a2ace

Browse files
authored
Merge pull request #16 from zaeleus/graphiql-body
Fix graphQLFetcher body serialization
2 parents ba4c54f + fe96029 commit 80a2ace

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/integrations/iron_handlers.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,7 @@ impl Handler for GraphiQLHandler {
189189
'Accept': 'application/json',
190190
'Content-Type': 'application/json',
191191
},
192-
body: JSON.stringify({
193-
query: params.query,
194-
variables: JSON.parse(params.variables || '{}')
195-
}),
192+
body: JSON.stringify(params)
196193
}).then(function (response) {
197194
return response.text();
198195
}).then(function (body) {

0 commit comments

Comments
 (0)