MongoCollection.update
void update(T, U)(T selector, U update, UpdateFlags flags = UpdateFlags.None)deprecated Use `replaceOne`, `updateOne` or `updateMany` taking `UpdateOptions` instead, this method breaks in MongoDB 5.1 and onwards.
Performs an update operation on documents matching 'selector', updating them with 'update'.
Throws
Exception if a DB communication error occurred.