updateMany method
Future<WriteResult>
updateMany(
- dynamic selector,
- dynamic update, {
- bool? upsert,
- WriteConcern? writeConcern,
- CollationOptions? collation,
- List? arrayFilters,
- String? hint,
- Map<
String, Object> ? hintDocument,
Implementation
Future<WriteResult> updateMany(selector, update,
{bool? upsert,
WriteConcern? writeConcern,
CollationOptions? collation,
List<dynamic>? arrayFilters,
String? hint,
Map<String, Object>? hintDocument}) async {
var updateManyOperation = UpdateManyOperation(
this,
UpdateManyStatement(_selectorBuilder2Map(selector),
update is List ? update : _updateBuilder2Map(update),
upsert: upsert,
collation: collation,
arrayFilters: arrayFilters,
hint: hint,
hintDocument: hintDocument),
updateManyOptions: UpdateManyOptions(writeConcern: writeConcern));
return updateManyOperation.executeDocument();
}