Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Create an index key for an ascending index on the given field.
Create an index key for an ascending index on the given field.
Attributes
- fieldName
the field name
- Returns:
the index specification https://docs.mongodb.com/manual/core/index-single/#single-field-indexes
Create an index key for an ascending index on the given fields.
Create an index key for an ascending index on the given fields.
Attributes
- fieldNames
the field names, which must contain at least one
- Returns:
the index specification https://docs.mongodb.com/manual/core/index-single/#single-field-indexes
Combines 2 indexes together to create a compound index specifications. If any field names are repeated, the last one takes precedence.
Combines 2 indexes together to create a compound index specifications. If any field names are repeated, the last one takes precedence.
Attributes
- anotherIndex
the index to be combined with
- Returns:
the index specification
Create an index key for an descending index on the given field.
Create an index key for an descending index on the given field.
Attributes
- fieldName
the field name
- Returns:
the index specification https://docs.mongodb.com/manual/core/index-single/#single-field-indexes
Create an index key for an descending index on the given fields.
Create an index key for an descending index on the given fields.
Attributes
- fieldName
the field names, which must contain at least one
- Returns:
the index specification https://docs.mongodb.com/manual/core/index-single/#single-field-indexes
Create an index key for a 2d index on the given field.
Create an index key for a 2d index on the given field.
Note: A 2d index is for data stored as points on a two-dimensional plane. The 2d index is intended for legacy coordinate pairs used in MongoDB 2.2 and earlier.
Attributes
- fieldName
the field to create a 2d index on
- Returns:
the index specification https://docs.mongodb.com/manual/core/2d/
Create an index key for an 2dsphere index on the given field.
Create an index key for an 2dsphere index on the given field.
Attributes
- fieldName
the field name
- Returns:
the index specification https://docs.mongodb.com/manual/core/2dsphere/
Create an index key for an 2dsphere index on the given fields.
Create an index key for an 2dsphere index on the given fields.
Attributes
- fieldNames
the field names, which must contain at least one
- Returns:
the index specification https://docs.mongodb.com/manual/core/2dsphere/
Create an index key for a hashed index on the given field.
Create an index key for a hashed index on the given field.
Attributes
- fieldName
the field to create a hashed index on
- Returns:
the index specification https://docs.mongodb.com/manual/core/index-hashed/
Create an index key for a text index on the given field.
Create an index key for a text index on the given field.
Attributes
- fieldName
the field to create a text index on
- Returns:
the index specification https://docs.mongodb.com/manual/core/index-text/
Create an index key for a text index on every field that contains string data.
Create an index key for a text index on every field that contains string data.
Attributes
- Returns:
the index specification https://docs.mongodb.com/manual/core/index-text/