list Collections
Finds all the collections in this database.
Return
the list collections iterable interface
abstract fun <TResult : Any> listCollections(resultClass: KClass<out TResult>): ListCollectionsFlow<TResult>
Content copied to clipboard
Finds all the collections in this database.
Return
the list collections iterable interface
Parameters
result Class
the class to decode each document into
abstract fun listCollections(clientSession: ClientSession): ListCollectionsFlow<Document>
Content copied to clipboard
Finds all the collections in this database.
Return
the list collections iterable interface
Since
3.6
Parameters
client Session
the client session with which to associate this operation
abstract fun <TResult : Any> listCollections(clientSession: ClientSession, resultClass: KClass<out TResult>): ListCollectionsFlow<TResult>
Content copied to clipboard
Finds all the collections in this database.
Return
the list collections iterable interface
Since
3.6
Parameters
client Session
the client session with which to associate this operation
result Class
the class to decode each document into