MongoDbIndex

Index definition for MongoDB.

Description

The MongoDbIndex class allows you to create an index for MongoDB.

Constructors

MongoDbIndex(this.keys, this.key, this.unique, this.sparse, this.background, this.dropDups, this.partialFilterExpression, this.name)

Fields

keys

Index keys (fields)

keys: Map<String, dynamic>

key

Key

key: String

unique

Unique option

unique: bool

sparse

Sparse option

sparse: bool

background

Background option

background: bool

dropDups

dropDups option

dropDups: bool

partialFilterExpression

Partial filter expression

partialFilterExpression: Map<String, dynamic>

name

Name

name: String