Package-level declarations

Types

Link copied to clipboard

A multi-stage aggregation pipeline that transforms documents from a MongoDB collection.

Link copied to clipboard

Entry-point to the KtMongo drivers.

Link copied to clipboard
interface MongoDatabase

A grouping of collections with the same theme.

Link copied to clipboard

Streaming-capable iterable cursor to read data from the database.

Functions

Link copied to clipboard

Streams the results into a Flow.

Link copied to clipboard

Returns the first document found by this query, or throws an exception.

Link copied to clipboard

Returns the first document found by this query, or returns null.

Link copied to clipboard
inline suspend fun <Document : Any> MongoAggregationPipeline<Document>.forEach(noinline action: suspend (Document) -> Unit)

Executes action for each document returned by this query.

Link copied to clipboard

Reads the entirety of this iterable into a List.

Link copied to clipboard

Reads the entirety of this iterable into a Set.