Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit ea8a88f

Browse files
committed
Fix the way we execute queries
1 parent 6839693 commit ea8a88f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/cli/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
const graphQlClient = require('../graphqlClient');
2+
const graphQlClient = require('../graphqlClient').default;
33
const chalk = require('chalk');
44
const retry = require('./retryHelper').retry;
55
const QueryGenerator = require('../queryGenerator');

Diff for: src/graphqlClient.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as fetch from 'node-fetch';
33
function createQuery(query) {
44
var body = {
55
"query": query,
6-
"variables": "{}",
6+
"variables": {},
77
"operationName": null
88
};
99

0 commit comments

Comments
 (0)