The write concern (number | string; default: null).
The write concern timeout (default: null).
Specify a journal write concern (default: false).
Creates an unique index (default: false).
Creates a sparse index (default: false).
Creates the index in the background, yielding whenever possible (default: false).
A unique index cannot be created on a key that has pre-existing duplicate values. If you would like to create the index anyway keeping the first document the database indexes and deleting all subsequent documents that have duplicate value (default: false).
For geospatial indexes set the lower bound for the co-ordinates (default: null).
For geospatial indexes set the high bound for the co-ordinates (default: null).
Specify the format version of the indexes (default: null).
Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher) (default: null).
Override the auto-generated index name (useful if the resulting name is larger than 128 bytes) (default: null)
Creates a partial index based on the given filter object (MongoDB 3.2 or higher)
Creates the index in the background, yielding whenever possible (default: false).
A unique index cannot be created on a key that has pre-existing duplicate values.
A unique index cannot be created on a key that has pre-existing duplicate values. If you would like to create the index anyway keeping the first document the database indexes and deleting all subsequent documents that have duplicate value (default: false).
Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher) (default: null).
Specify a journal write concern (default: false).
For geospatial indexes set the high bound for the co-ordinates (default: null).
For geospatial indexes set the lower bound for the co-ordinates (default: null).
Override the auto-generated index name (useful if the resulting name is larger than 128 bytes) (default: null)
Creates a partial index based on the given filter object (MongoDB 3.2 or higher)
Creates a sparse index (default: false).
Creates an unique index (default: false).
Specify the format version of the indexes (default: null).
The write concern (number | string; default: null).
The write concern timeout (default: null).
Index Options