filterNotNull

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

Returns a list containing all elements that are not null.