We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48e23de commit 6cf1b53Copy full SHA for 6cf1b53
index.js
@@ -273,13 +273,12 @@ Shopify.prototype.graphql = function graphql(data, variables) {
273
pathname += '/graphql.json';
274
275
const uri = { pathname, ...this.baseUrl };
276
- const json = variables !== undefined && variables !== null;
277
const options = {
278
agent: this.options.agent,
279
- body: json ? this.options.stringifyJson({ query: data, variables }) : data,
+ body: this.options.stringifyJson({ query: data, variables }),
280
headers: {
281
...this.baseHeaders,
282
- 'Content-Type': json ? 'application/json' : 'application/graphql'
+ 'Content-Type': 'application/json'
283
},
284
method: 'POST',
285
parseJson: this.options.parseJson,
0 commit comments