This commit is contained in:
2021-03-31 00:51:08 +11:00
parent a66e97953e
commit 7b5998b63d
2 changed files with 1 additions and 3 deletions

View File

@@ -19,7 +19,6 @@ const sineQL = (schema, { queryHandlers }, options = {}) => {
try {
//parse the query
const tokens = parseInput(reqBody, true, options);
const queryTree = parseQueryTree(tokens, typeGraph, options);
switch(tokens[0]) {
//check for leading keywords
@@ -32,6 +31,7 @@ const sineQL = (schema, { queryHandlers }, options = {}) => {
//no leading keyword - regular query
default: {
const queryTree = parseQueryTree(tokens, typeGraph, options);
const result = await queryHandlers[queryTree.typeName](queryTree, typeGraph);
if (options.debug) {