Skip to content

MongoDB driver for Kotlin (synchronous)opensavvy.ktmongo.sync.operationsFindOperations

FindOperations

Interface grouping MongoDB operations allowing to search for information.

Inheritors

Properties

context

abstract val context: 

Functions

find

abstract fun find(): MongoIterable<Document>

Finds all documents in this collection.

abstract fun find(options: <Document>.() -> Unit = {}, filter: <Document>.() -> Unit): MongoIterable<Document>

Finds all documents in this collection that satisfy filter.

findOne

open fun findOne(options: <Document>.() -> Unit = {}, filter: <Document>.() -> Unit): Document?

Finds a document in this collection that satisfies filter.