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

Method updateProperty

packages/graph/src/GraphStorage.ts:341–347  ·  view source on GitHub ↗
(id: ElementId, key: string, value: any)

Source from the content-addressed store, hash-verified

339 }
340
341 public updateProperty(id: ElementId, key: string, value: any): void {
342 const element = this.#vertices.get(id) ?? this.#edges.get(id);
343 if (element == null) {
344 throw new ElementNotFoundError(id);
345 }
346 (element.properties as any)[key] = value;
347 }
348
349 /**
350 * Get the statistics of the graph.

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected