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

Method getVertexById

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

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

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

Source from the content-addressed store, hash-verified

137 * @param options.throwIfNotFound If true, throws VertexNotFoundError instead of returning undefined.
138 */
139 getVertexById<TVertexLabel extends VertexLabel<TSchema>>(
140 id: ElementId,
141 options: { throwIfNotFound: true },
142 ): Vertex<TSchema, TVertexLabel>;

Callers 12

instantiateResultMethod · 0.65
traverseMethod · 0.65
traverseMethod · 0.65
getVertexByIdMethod · 0.65
deleteVertexMethod · 0.65
updatePropertyMethod · 0.65
inVMethod · 0.65
outVMethod · 0.65
indexes.test.tsFile · 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