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

filterNotNull

fun <T : Any> MongoIterable<T?>.filterNotNull(): List<T> (source)

Returns a list containing all elements that are not null.