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