MCPcopy Create free account
hub / github.com/codemix/graph / _executeQuery

Function _executeQuery

packages/graph/src/test/ShortestPath.test.ts:1035–1040  ·  view source on GitHub ↗
(queryString: string)

Source from the content-addressed store, hash-verified

1033});
1034
1035function _executeQuery(queryString: string) {
1036 const ast = parse(queryString) as Query;
1037 const steps = astToSteps(ast);
1038 const traverser = createTraverser(steps);
1039 return Array.from(traverser.traverse(graph, []));
1040}
1041
1042test("Shortest Path - Query Language Extended - parses allShortestPaths function", () => {
1043 const queryString = `

Callers

nothing calls this directly

Calls 3

astToStepsFunction · 0.85
createTraverserFunction · 0.85
traverseMethod · 0.45

Tested by

no test coverage detected