S

Loading…

Interface

IndexDefinitionOptions

The options every index definition accepts.

interface IndexDefinitionOptions

Defined in packages/driver/src/indexes.ts:16

Properties#

P

sparse

#
readonly sparse?: boolean

Documents without the field are left out, so they never conflict. A compound index leaves out only the documents that have none of its fields.

Defined in packages/driver/src/indexes.ts:26

P

unique

#
readonly unique?: boolean

At most one document may hold a given value, or a given combination of values for a compound index, or lack the field.

Defined in packages/driver/src/indexes.ts:21

Used by#