MongoDB driver for Kotlin (coroutines) • opensavvy.ktmongo.coroutines
Package-level declarations¶
Declaration and implementation of collections and iterables.
Types¶
JvmMongoCollection
¶
class JvmMongoCollection<Document : Any> : MongoCollection<Document>
Implementation of MongoCollection
based on MongoDB's MongoCollection.
JvmMongoIterable
¶
class JvmMongoIterable<Document : Any> : MongoIterable<Document>
Implementation of MongoIterable
based on MongoDB's FindFlow.
MongoAggregationPipeline
¶
class MongoAggregationPipeline<Output : Any> : LazyMongoIterable<Output>
MongoCollection
¶
Methods to interact with a MongoDB collection.
MongoIterable
¶
interface MongoIterable<Document : Any>
Streaming-ready iterable client to read data from the database.
Functions¶
asKtMongo
¶
Converts a MongoDB FindFlow into a KtMongo MongoIterable
.
Converts a MongoDB collection into a KtMongo collection
.
filter
¶
fun <Document : Any> MongoCollection<Document>.filter(filter: <Document>.() -> Unit): MongoCollection<Document>
Returns a filtered collection that only contains the elements that match filter
.