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