MongoDB driver for Kotlin (synchronous) • opensavvy.ktmongo.sync • JvmMongoIterable • first
first¶
Returns the first document found by this query, or throws an exception.
See also¶
Throws¶
NoSuchElementException-
If this query returned no results.
MongoDB driver for Kotlin (synchronous) • opensavvy.ktmongo.sync • JvmMongoIterable • first
Returns the first document found by this query, or throws an exception.
NoSuchElementExceptionIf this query returned no results.