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

Method update

packages/graph/src/indexes/HashIndex.ts:63–66  ·  view source on GitHub ↗
(elementId: ElementId, oldValue: unknown, newValue: unknown)

Source from the content-addressed store, hash-verified

61 }
62
63 public update(elementId: ElementId, oldValue: unknown, newValue: unknown): void {
64 this.remove(elementId, oldValue);
65 this.add(elementId, newValue);
66 }
67
68 /**
69 * Look up element IDs by exact value match.

Callers

nothing calls this directly

Calls 2

removeMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected