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

find

inline fun <T> MongoIterable<T>.find(crossinline predicate: (T) -> Boolean): T? (source)

Returns the first element matching the given predicate, or null if no such element was found.