updateRecords function

  1. @deprecated
Future<int> updateRecords(
  1. StoreExecutor executor,
  2. Map<String, dynamic> values,
  3. {Finder where}

@deprecated v2

Update all records matching where with the values fields Returns the number of records updated


Future<int> updateRecords(StoreExecutor executor, Map<String, dynamic> values,
    {Finder where}) async {
  var records = await executor.findRecords(where);
  for (var record in records) {
    await executor.update(values, record.key);
  return records.length;