dropIndex

suspend fun <T : Any> MongoCollection<T>.dropIndex(keys: String)

Deprecated

kmongo-dsl: shadowed by the driver dropIndex(indexName), which is the one called from Kotlin

Replace with

dropIndexOfKeys(keys)

Drops the index given the keys used to create it.

Parameters

keys

the keys of the index to remove


suspend fun <T : Any> MongoCollection<T>.dropIndex(clientSession: ClientSession, keys: String)

Deprecated

kmongo-dsl: shadowed by the driver dropIndex(clientSession, indexName), which is the one called from Kotlin

Replace with

dropIndexOfKeys(clientSession, keys)

Drops the index given the keys used to create it.

Parameters

clientSession

the client session with which to associate this operation

keys

the keys of the index to remove