MCPcopy Index your code
hub / github.com/codemix/graph / handleAsyncQuery

Function handleAsyncQuery

packages/graph/src/AsyncGraph.ts:192–201  ·  view source on GitHub ↗
(
  graph: Graph<TSchema>,
  command: AsyncQuery,
)

Source from the content-addressed store, hash-verified

190}
191
192function* handleAsyncQuery<TSchema extends GraphSchema>(
193 graph: Graph<TSchema>,
194 command: AsyncQuery,
195) {
196 const steps = createStepsFromJSON(command.steps);
197 const traverser = createTraverser(steps);
198 for (const path of traverser.traverse(graph, [])) {
199 yield jsonClone(path) as TraversalPathJSON | StoredEdge | StoredVertex;
200 }
201}
202
203function* handleAsyncTransaction<TSchema extends GraphSchema>(
204 graph: Graph<TSchema>,

Callers 1

handleAsyncCommandFunction · 0.85

Calls 4

createStepsFromJSONFunction · 0.85
createTraverserFunction · 0.85
jsonCloneFunction · 0.85
traverseMethod · 0.45

Tested by

no test coverage detected