Package-level declarations

Types

Link copied to clipboard

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

Link copied to clipboard

An aggregation pipeline built on top of the official Kotlin driver.

Link copied to clipboard

Entry-point to the KtMongo Coroutines driver.

Link copied to clipboard

A collection stores related documents together.

Link copied to clipboard

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
Link copied to clipboard

Instantiates a KtMongo CoroutineMongoAggregateIterable using an existing flow from the official Kotlin driver.

Instantiates a KtMongo CoroutineMongoFindIterable using an existing flow from the official Kotlin driver.

fun MongoClient.asKtMongo(): CoroutineMongoClient

Instantiates a KtMongo CoroutineMongoClient using an existing client from the official Kotlin driver.

fun MongoDatabase.asKtMongo(): CoroutineMongoDatabase

Instantiates a KtMongo CoroutineMongoDatabase using an existing client from the official Kotlin driver.

inline fun <Document : Any> MongoCollection<Document>.asKtMongo(factory: BsonFactory = BsonFactory(this.codecRegistry), propertyNameStrategy: PropertyNameStrategy = PropertyNameStrategy.Default, objectIdGenerator: ObjectIdGenerator = ObjectIdGenerator.Jvm()): CoroutineMongoCollection<Document>
fun <Document : Any> MongoCollection<Document>.asKtMongo(factory: BsonFactory = BsonFactory(this.codecRegistry), propertyNameStrategy: PropertyNameStrategy = PropertyNameStrategy.Default, objectIdGenerator: ObjectIdGenerator = ObjectIdGenerator.Jvm(), type: KType): CoroutineMongoCollection<Document>

Instantiates a KtMongo CoroutineMongoCollection using an existing collection from the official Kotlin driver.

Link copied to clipboard
fun CoroutineMongoClient(connectionString: String = "mongodb://localhost:27017"): CoroutineMongoClient

Instantiates a KtMongo CoroutineMongoClient using an existing client from the official Kotlin driver.