jvm MongoDB driver for Kotlin (coroutines) • opensavvy.ktmongo.coroutines • MongoIterable • first first¶ open suspend fun first(): Document Returns the first document found by this query, or throws an exception. See also¶ MongoIterable.firstOrNull Throws¶ NoSuchElementException If this query returned no results.