MongoDB driver for Kotlin (coroutines) • opensavvy.ktmongo.coroutines • MongoIterable • firstOrNull
firstOrNull¶
abstract suspend fun firstOrNull(): Document?
Returns the first document found by this query, or null
if none were found.
MongoDB driver for Kotlin (coroutines) • opensavvy.ktmongo.coroutines • MongoIterable • firstOrNull
abstract suspend fun firstOrNull(): Document?
Returns the first document found by this query, or null
if none were found.