updateMany method
Implementation
Future<void> updateMany(
Map<String, dynamic> query, Map<String, dynamic> updates) async {
for (final id in collection.keys) {
final document = collection[id];
if (_matchWithOperators(document, query)) {
Task task = Task("update", () async {
final ud = _updateDocumentWithOperators(document, updates);
collection[id] = ud;
});
harnCollectionQueue.enqueue(task);
_notifyDocumentUpdated(id);
}
}
// await _saveCollection();
}