(graph: Graph<typeof schema>, queryString: string)
| 23 | } |
| 24 | |
| 25 | function executeQuery(graph: Graph<typeof schema>, queryString: string): unknown[] { |
| 26 | const ast = parse(queryString) as Query; |
| 27 | const steps = anyAstToSteps(ast); |
| 28 | const traverser = createTraverser(steps); |
| 29 | return Array.from(traverser.traverse(graph, [])); |
| 30 | } |
| 31 | |
| 32 | describe("count(*) support", () => { |
| 33 | test("count(*) should count all matched rows", () => { |
no test coverage detected