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

Method update

packages/graph/src/indexes/BTreeIndex.ts:134–137  ·  view source on GitHub ↗
(elementId: ElementId, oldValue: unknown, newValue: unknown)

Source from the content-addressed store, hash-verified

132 }
133
134 public update(elementId: ElementId, oldValue: unknown, newValue: unknown): void {
135 this.remove(elementId, oldValue);
136 this.add(elementId, newValue);
137 }
138
139 /**
140 * 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