Litote / kmongo

[deprecated] KMongo - a Kotlin toolkit for Mongo
https://litote.org/kmongo/
Apache License 2.0
781 stars 75 forks source link

Support for `findOneAndUpdate` with an aggregation pipeline #385

Open mervyn-mccreight opened 2 years ago

mervyn-mccreight commented 2 years ago

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.