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

Method getEdgeById

packages/graph/src/Graph.ts:270–275  ·  view source on GitHub ↗
(
    _id: ElementId,
    _options?: { throwIfNotFound?: boolean },
  )

Source from the content-addressed store, hash-verified

268 _options?: { throwIfNotFound?: false },
269 ): Edge<TSchema, TEdgeLabel> | undefined;
270 public getEdgeById<TEdgeLabel extends EdgeLabel<TSchema>>(
271 _id: ElementId,
272 _options?: { throwIfNotFound?: boolean },
273 ): Edge<TSchema, TEdgeLabel> | undefined {
274 throw new Error("Cannot get edge by id from an empty graph source.");
275 }
276}
277
278/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected