(graph: Graph<TestSchema>, query: string)
| 57 | type TestSchema = typeof schema; |
| 58 | |
| 59 | function executeQuery(graph: Graph<TestSchema>, query: string): any[] { |
| 60 | const ast = parse(query) as Query; |
| 61 | const steps = astToSteps(ast); |
| 62 | const traverser = createTraverser(steps); |
| 63 | return Array.from(traverser.traverse(graph, [])); |
| 64 | } |
| 65 | |
| 66 | // Helper function to create mock TraversalPath objects for testing |
| 67 | function createMockPath(properties: Record<string, any>): TraversalPath<undefined, any, []> { |
no test coverage detected