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

Method update

packages/graph/src/indexes/FullTextIndex.ts:98–101  ·  view source on GitHub ↗
(elementId: ElementId, oldValue: unknown, newValue: unknown)

Source from the content-addressed store, hash-verified

96 }
97
98 public update(elementId: ElementId, oldValue: unknown, newValue: unknown): void {
99 this.remove(elementId, oldValue);
100 this.add(elementId, newValue);
101 }
102
103 /**
104 * Perform a full-text search with relevance scoring.

Callers

nothing calls this directly

Calls 2

removeMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected