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

flatMap

inline fun <T, R> MongoIterable<T>.flatMap(crossinline transform: (T) -> MongoIterable<R>): List<R> (source)

Returns a single list of all elements yielded from results of transform function being invoked on each element of original collection.