KMongo DSL
Toggle table of contents
5.14.1-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
KMongo DSL
kmongo-dsl-sync
/
org.litote.kmongo
/
firstOrNull
first
Or
Null
inline
fun
<
T
>
MongoIterable
<
T
>
.
firstOrNull
(
crossinline
predicate
:
(
T
)
->
Boolean
)
:
T
?
Returns the first element matching the given
predicate
, or
null
if element was not found.