Package-level declarations
Types
Properties
KMongo 4/5: converted a reactive streams client to a coroutine client. The client is already a coroutine client.
KMongo 4/5: converted a reactive streams collection. The collection is already a coroutine collection.
KMongo 4/5: converted a reactive streams database. The database is already a coroutine database.
Functions
KMongo 4/5 coroutine extension of the reactive streams ClientSession.
Aggregates documents according to the specified aggregation pipeline.
Executes a mix of inserts, updates, replaces, and deletes.
KMongo 4/5 coroutine extension of the reactive streams ClientSession.
KMongo 4/5 CoroutinePublisher.consumeEach: iterates over all elements.
Counts the number of documents in the collection according to the given options.
Create an index with the given keys and options.
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.
Removes at most one document from the id parameter. If no documents match, the collection is not modified.
Gets the distinct values of the specified field name.
Gets the distinct values of the specified field.
Drops the default collection of T (see getCollection).
Drops the index given the keys used to create it.
Create an index with the given keys and options. If the creation of the index is not doable because an index with the same keys but with different IndexOptions already exists, then drop the existing index and create a new one.
Create an ascending index with the given keys and options. If the creation of the index is not doable because an index with the same keys but with different IndexOptions already exists, then drop the existing index and create a new one.
Create an IndexOptions.unique index with the given keys and options. If the creation of the index is not doable because an index with the same keys but with different IndexOptions already exists, then drop the existing index and create a new one.
KMongo 4/5 CoroutineCollection.findAndCast: finds all documents in the collection, mapped to T.
Finds the first document that match the filter in the collection.
Finds the first document that match the filters in the collection.
Atomically find a document and remove it.
Atomically find a document and replace it.
Atomically find a document and update it.
Atomically find a document and update it with the not null properties of update.
Finds the document that match the id parameter.
Finds the document with the specified id.
KMongo 4/5 CoroutineAggregatePublisher.first returned null if there is no result.
KMongo 4/5 CoroutineDistinctPublisher.first returned null if there is no result.
KMongo 4/5 CoroutineFindPublisher.first returned null if there is no result (kotlinx.coroutines.flow.first throws a NoSuchElementException).
Gets a collection.
Gets a collection.
Inserts the provided document. If the document is missing an identifier, the driver should generate one.
Get all the indexes in this collection.
Get all the indexes in this collection.
Creates a $lookup pipeline stage for the specified filter (Typesafe version)
Sets a document describing the fields to return for all matching documents.
Returns the specified field for all matching documents.
Returns the specified two fields for all matching documents.
Returns the specified three fields for all matching documents.
Replace a document in the collection according to the specified arguments.
Replace a document in the collection according to the specified arguments.
Replace a document in the collection according to the specified arguments. Same than MongoCollection.replaceOne but ensure that any _id present in replacement is removed to avoid MongoWriteException such as: "After applying the update, the (immutable) field '_id' was found to have been altered to _id"
Replaces a document in the collection according to the specified arguments (the _id of the replacement is ignored).
Executes the given command in the context of the current database with the given read preference.
Returns all the results as a list (KMongo 4/5 publishers provided a toList() member).
Update all documents in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
Watches the collection indefinitely: a change stream that survives the errors and the invalidations.
Returns a MongoCollection with a KMongo codec.
Returns a MongoDatabase with a KMongo codec.