Struct IndexModel
struct IndexModel
;
Fields
Name | Type | Description |
---|---|---|
keys
|
Bson | |
options
|
IndexOptions |
Properties
Name | Type | Description |
---|---|---|
name [get]
|
string |
Methods
Name | Description |
---|---|
add
(field, direction)
|
Adds a single field or multikey index with a direction. |
add
(field, type)
|
Adds an index with a given index type. Use IndexType for a type-safe
setting of the string.
|
withOptions
(options)
|
Sets the options member of this IndexModel. |