Interface
IndexInfo
A description of an index, as returned by SinterCollection.indexes.
interface IndexInfoDefined in packages/driver/src/indexes.ts:89
Properties#
direction
#readonly direction: -1 | 11 for ascending or -1 for descending, for the first field.
Defined in packages/driver/src/indexes.ts:95
field
#readonly field: stringThe first indexed field path. Use keys for a compound index.
Defined in packages/driver/src/indexes.ts:93
keys
#readonly keys: readonly IndexKeyInfo[]Every indexed field in order. One entry unless the index is compound.
Defined in packages/driver/src/indexes.ts:97
name
#readonly name: stringThe index name.
Defined in packages/driver/src/indexes.ts:91
sparse
#readonly sparse: booleanWhether documents without the field are left out of the index.
Defined in packages/driver/src/indexes.ts:101
unique
#readonly unique: booleanWhether the index rejects duplicate values.
Defined in packages/driver/src/indexes.ts:99