Open mervyn-mccreight opened 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.
findOneAndUpdate
This is also supported by the java client, it's the variant taking a List<Bson> as a parameter for the update.
List<Bson>
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.