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

Method getEdgeMap

packages/y-graph-storage/src/YGraphStorage.ts:393–401  ·  view source on GitHub ↗
(edgeId: ElementId)

Source from the content-addressed store, hash-verified

391 return data as Y.Map<unknown>;
392 }
393 protected getEdgeMap(edgeId: ElementId): Y.Map<unknown> {
394 const [label, uuid] = parseElementId(edgeId);
395 const collection = this.getEdgeCollectionMap(label);
396 const data = collection.get(uuid);
397 if (data == null) {
398 throw new EdgeNotFoundError(edgeId);
399 }
400 return data as Y.Map<unknown>;
401 }
402
403 public updateProperty(id: ElementId, key: string, value: any): void {
404 const [label, uuid] = parseElementId(id);

Callers

nothing calls this directly

Calls 3

getEdgeCollectionMapMethod · 0.95
parseElementIdFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected