ascendingIndex

fun ascendingIndex(vararg properties: KProperty<*>): Bson
fun ascendingIndex(properties: Iterable<KProperty<*>>): Bson

Create an index key for an ascending index on the given fields.

Return

the index specification

Parameters

properties

the properties, which must contain at least one