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 706f9ca commit 305e49aCopy full SHA for 305e49a
graphql/index.js
@@ -34,7 +34,7 @@ function runQuery(file, token) {
34
process.exit(1);
35
}
36
37
- //If there is a variables section, extract the values and add them to the query JSON object. Otherwise, add and empty object
+ //If there is a variables section, extract the values and add them to the query JSON object.
38
queryObj.variables = variablesRegex.test(queryText) ? JSON.parse(queryText.match(variablesRegex)[0].split("variables ")[1]) : {}
39
//Remove the variables section from the query text, whether it exists or not
40
queryObj.query = queryText.replace(variablesRegex, '');
0 commit comments