Skip to main content

Function: getIndexMetadata()

getIndexMetadata(clazz): IndexInfo[]

Defined in: service-core/src/decorators/PersistenceDecorators.ts:324

Returns the merged list of indexes declared across the entire class hierarchy of the given model class, including both property-level and class-level (compound) indexes. Indexes declared in subclasses override indexes with the same identity (name, or column set when unnamed) declared in parent classes.

Parameters​

clazz​

any

The model class to retrieve index metadata for.

Returns​

IndexInfo[]