index

fun index(vararg properties: Pair<KProperty<*>, Boolean>): Bson

Create a compound index specifications. If any properties are repeated, the last one takes precedence.

Return

the compound index specification

Parameters

indexes

the index specifications


fun index(properties: Map<KProperty<*>, Boolean>): Bson

Create a compound multiple index specifications. If any properties are repeated, the last one takes precedence.

Return

the compound index specification

Parameters

indexes

the index specifications