listIndexes

inline fun <TResult : Any> MongoCollection<*>.listIndexes(): ListIndexesIterable<TResult>

Get all the indexes in this collection.

Return

the list indexes iterable interface

Parameters

the target document type of the iterable.

inline fun <TResult : Any> MongoCollection<*>.listIndexes(clientSession: ClientSession): ListIndexesIterable<TResult>

Get all the indexes in this collection.

Return

the list indexes iterable interface

Parameters

clientSession

the client session with which to associate this operation

the target document type of the iterable.