suspend fun dropIndexes(dropIndexOptions: DropIndexOptions = DropIndexOptions()): <ERROR CLASS>
(source)
Drop all the indexes on this collection, except for the default on _id.
dropIndexOptions
- options to use when dropping indexes
Return
a single element indicating when the operation has completed
Mongodb
.driver.manual reference/command/dropIndexes/ Drop Indexes
Since
1.7
suspend fun dropIndexes(clientSession: ClientSession, dropIndexOptions: DropIndexOptions = DropIndexOptions()): <ERROR CLASS>
(source)
Drop all the indexes on this collection, except for the default on _id.
clientSession
- the client session with which to associate this operation
dropIndexOptions
- options to use when dropping indexes
Return
a single element indicating when the operation has completed
Mongodb
.driver.manual reference/command/dropIndexes/ Drop Indexes
Mongodb
.server.release 3.6
Since
1.7