Support for `findOneAndUpdate` with an aggregation pipeline
mervyn-mccreight opened this issue · comments
Mervyn McCreight commented
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.