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

Method constructor

packages/graph/src/indexes/FullTextIndex.ts:49–53  ·  view source on GitHub ↗
(label: string, property: string, options?: MatcherOptions)

Source from the content-addressed store, hash-verified

47 #documents: Map<ElementId, string> = new Map();
48
49 public constructor(label: string, property: string, options?: MatcherOptions) {
50 this.label = label;
51 this.property = property;
52 this.#options = options ?? {};
53 }
54
55 public add(elementId: ElementId, value: unknown): void {
56 if (typeof value !== "string" || value.length === 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected