kmongo / kotlin.collections / com.mongodb.client.MongoIterable / toCollection

toCollection

fun <T, C : MutableCollection<in T>> MongoIterable<T>.toCollection(destination: C): C (source)

Appends all elements to the given destination collection.