kmongo / org.litote.kmongo / ascendingIndex

ascendingIndex

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

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

Parameters

properties - the properties, which must contain at least one

Return
the index specification

Mongodb
.driver.manual core/indexes indexes