pokemon example is working

This commit is contained in:
2020-09-07 14:31:17 +10:00
parent d99a99981b
commit 792ea6b23d
6 changed files with 94 additions and 105 deletions

View File

@@ -217,7 +217,7 @@ const parseQuery = async (handler, tokens, pos, typeGraph, parent = null) => {
{ typeName: queryType, scalars: scalarFields, context: result, match: match } //parent object (this one)
);
return [tokens[pos2], queryResult, match]; //HACK: match piggybacking on the tuple
return [tokens[pos2 - 1], queryResult, match]; //HACK: match piggybacking on the tuple
});
pos = eatBlock(tokens, pos + 2);