Litote / kmongo

[deprecated] KMongo - a Kotlin toolkit for Mongo

Home Page:https://litote.org/kmongo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for `findOneAndUpdate` with an aggregation pipeline

mervyn-mccreight opened this issue · comments

According to https://www.mongodb.com/docs/upcoming/reference/method/db.collection.findOneAndUpdate/ findOneAndUpdate also supports defining an aggregation pipeline for the update.

This is also supported by the java client, it's the variant taking a List<Bson> as a parameter for the update.