Skip to content

Commit 05d16e9

Browse files
committed
Restoring stringify graphql body
1 parent a6a95ea commit 05d16e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

codegens/r-httr/lib/util/parseBody.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ function parseGraphQL (body, bodyTrim) {
218218
catch (e) {
219219
graphqlVariables = {};
220220
}
221-
bodySnippet = `'${sanitizeString(`{
222-
query: ${query},
223-
variables: ${graphqlVariables}
224-
}`, bodyTrim)}'`;
221+
bodySnippet = `'${sanitizeString(JSON.stringify({
222+
query: query,
223+
variables: graphqlVariables
224+
}), bodyTrim)}'`;
225225
return bodySnippet;
226226
}
227227

0 commit comments

Comments
 (0)