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

Function handleAsyncCommand

packages/graph/src/AsyncGraph.ts:180–190  ·  view source on GitHub ↗
(
  graph: Graph<TSchema>,
  command: AsyncCommand,
)

Source from the content-addressed store, hash-verified

178}
179
180export async function* handleAsyncCommand<TSchema extends GraphSchema>(
181 graph: Graph<TSchema>,
182 command: AsyncCommand,
183): AsyncIterable<TransportableValue> {
184 switch (command["@type"]) {
185 case "AsyncQuery":
186 return yield* handleAsyncQuery(graph, command);
187 case "AsyncTransaction":
188 return yield* handleAsyncTransaction(graph, command);
189 }
190}
191
192function* handleAsyncQuery<TSchema extends GraphSchema>(
193 graph: Graph<TSchema>,

Callers 1

AsyncGraph.test.tsFile · 0.85

Calls 2

handleAsyncQueryFunction · 0.85
handleAsyncTransactionFunction · 0.85

Tested by

no test coverage detected