fun index(vararg properties: Pair<KProperty<*>, Boolean>): Bson
(source)
Create a compound index specifications. If any properties are repeated, the last one takes precedence.
indexes
- the index specifications
Return
the compound index specification
Mongodb
.driver.manual core/index-compound compoundIndex
fun index(properties: Map<KProperty<*>, Boolean>): Bson
(source)
Create a compound multiple index specifications. If any properties are repeated, the last one takes precedence.
indexes
- the index specifications
Return
the compound index specification
Mongodb
.driver.manual core/index-compound compoundIndex