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

Method getEdgeById

packages/graph/src/Graph.ts:161–161  ·  view source on GitHub ↗

* Get a specific edge by its unique identifier. * @param id The id of the edge. * @param options.throwIfNotFound If true, throws EdgeNotFoundError instead of returning undefined.

(
    id: ElementId,
    options: { throwIfNotFound: true },
  )

Source from the content-addressed store, hash-verified

159 * @param options.throwIfNotFound If true, throws EdgeNotFoundError instead of returning undefined.
160 */
161 getEdgeById<TEdgeLabel extends EdgeLabel<TSchema>>(
162 id: ElementId,
163 options: { throwIfNotFound: true },
164 ): Edge<TSchema, TEdgeLabel>;

Callers 8

instantiateResultMethod · 0.65
traverseMethod · 0.65
traverseMethod · 0.65
getEdgeByIdMethod · 0.65
deleteEdgeMethod · 0.65
updatePropertyMethod · 0.65
Graph.test.tsFile · 0.65

Implementers 4

EmptyGraphSourcepackages/graph/src/Graph.ts
Graphpackages/graph/src/Graph.ts
InMemoryGraphStoragepackages/graph/src/GraphStorage.ts
YGraphStoragepackages/y-graph-storage/src/YGraphSto

Calls

no outgoing calls

Tested by

no test coverage detected