IndexModel

Undocumented in source.

Members

Functions

add
IndexModel add(string field, string type)

Adds an index with a given index type. Use IndexType for a type-safe setting of the string.

add
IndexModel add(string field, int direction)

Adds a single field or multikey index with a direction.

name
string name()
Undocumented in source. Be warned that the author may not have intended to support it.
withOptions
IndexModel withOptions(IndexOptions options)

Sets the options member of this IndexModel.

Variables

keys
Bson keys;
Undocumented in source.
options
IndexOptions options;
Undocumented in source.

Meta