Defining Indexes
Indexes are defined as part of the collection configuration:Index Types
Single Field Index
Compound Index
Unique Index
TTL Index (Time-To-Live)
Text Index
Geospatial Index
Index Options
Theoptions
object can include the following properties: