jvm MongoDB driver for Kotlin (synchronous) • opensavvy.ktmongo.sync • JvmMongoIterable • first first¶ open override 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.