Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • <internal>.Pick<CreateIndexesOptions, "background" | "unique" | "partialFilterExpression" | "sparse" | "hidden" | "expireAfterSeconds" | "storageEngine" | "version" | "weights" | "default_language" | "language_override" | "textIndexVersion" | "2dsphereIndexVersion" | "bits" | "min" | "max" | "bucketSize" | "wildcardProjection">
    • IndexDescription

Index

Properties

background?: boolean

Creates the index in the background, yielding whenever possible.

unique?: boolean

Creates an unique index.

partialFilterExpression?: <internal>.Document

Creates a partial index based on the given filter object (MongoDB 3.2 or higher)

sparse?: boolean

Creates a sparse index.

expireAfterSeconds?: number

Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)

storageEngine?: <internal>.Document

Allows users to configure the storage engine on a per-index basis when creating an index. (MongoDB 3.0 or higher)

version?: number

Specifies the index version number, either 0 or 1.

default_language?: string
language_override?: string
textIndexVersion?: number
2dsphereIndexVersion?: number
bits?: number
min?: number

For geospatial indexes set the lower bound for the co-ordinates.

max?: number

For geospatial indexes set the high bound for the co-ordinates.

bucketSize?: number
wildcardProjection?: <internal>.Document
hidden?: boolean

Specifies that the index should exist on the target collection but should not be used by the query planner when executing operations. (MongoDB 4.4 or higher)

collation?: CollationOptions
name?: string
key: {} | Map<string, <internal>.IndexDirection>

Generated using TypeDoc