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