jvm MongoDB driver for Kotlin (coroutines) • opensavvy.ktmongo.coroutines • MongoIterable • toList toList¶ open suspend fun toList(): List<Document> Reads the entirety of this response into a List. Since lists are in-memory, this will load the entirety of the results of this query into memory. See also¶ MongoIterable.toSet