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

Method hasIndexOfType

packages/graph/src/indexes/IndexManager.ts:72–75  ·  view source on GitHub ↗

* Check if a property has an index of a specific type. * @param label The element label. * @param property The property name. * @param type The index type to check for. * @returns True if the property has an index of the specified type.

(label: string, property: string, type: IndexConfig["type"])

Source from the content-addressed store, hash-verified

70 * @returns True if the property has an index of the specified type.
71 */
72 public hasIndexOfType(label: string, property: string, type: IndexConfig["type"]): boolean {
73 const config = this.getIndexConfig(label, property);
74 return config?.type === type;
75 }
76
77 /**
78 * Check if a property has a unique index constraint.

Callers 2

#tryIndexLookupMethod · 0.80
indexes.test.tsFile · 0.80

Calls 1

getIndexConfigMethod · 0.95

Tested by

no test coverage detected