MongoDB driver for Kotlin (coroutines) • opensavvy.ktmongo.coroutines • MongoIterable • forEach
forEach
Executes action
for each document returned by this query.
This method streams all returned elements into the action
function. The entire response is not loaded at once into memory.