kmongo / org.litote.kmongo / com.mongodb.client.MongoIterable / toList

toList

fun <T> MongoIterable<T>.toList(): List<T> (source)
Deprecated: use classic toList extension

Iterates over all the documents, adding each to the given target.

Parameters

target - the collection to insert into

callback - a callback that will be passed the target containing all documents