Property decorator that creates an IndexedDB index on the decorated field, enabling efficient lookups via EntityRepository.findByIndex and EntityRepository.findOneByIndex.
Optional
Standard IDBIndexParameters (e.g., { unique: true }).
IDBIndexParameters
{ unique: true }
@DataClass()class User { @KeyPath() id!: string; @Index({ unique: true }) email!: string; @Index() department!: string;} Copy
@DataClass()class User { @KeyPath() id!: string; @Index({ unique: true }) email!: string; @Index() department!: string;}
Property decorator that creates an IndexedDB index on the decorated field, enabling efficient lookups via EntityRepository.findByIndex and EntityRepository.findOneByIndex.