listCollections

abstract fun listCollections(): ListCollectionsFlow<Document>

Finds all the collections in this database.

Return

the list collections iterable interface


abstract fun <TResult : Any> listCollections(resultClass: KClass<out TResult>): ListCollectionsFlow<TResult>

Finds all the collections in this database.

Return

the list collections iterable interface

Parameters

resultClass

the class to decode each document into

the target document type of the iterable.

abstract fun listCollections(clientSession: ClientSession): ListCollectionsFlow<Document>

Finds all the collections in this database.

Return

the list collections iterable interface

Since

3.6

Parameters

clientSession

the client session with which to associate this operation


abstract fun <TResult : Any> listCollections(clientSession: ClientSession, resultClass: KClass<out TResult>): ListCollectionsFlow<TResult>

Finds all the collections in this database.

Return

the list collections iterable interface

Since

3.6

Parameters

clientSession

the client session with which to associate this operation

resultClass

the class to decode each document into

the target document type of the iterable.