modify method
Applies JSON Patch changes to all records in a table, or a specific record.
Implementation
Future<dynamic> modify(String thing, List<Map<String, dynamic>> data) {
final id = _generateId();
final completer = Completer();
wait().then((_) {
once(id, (res) => _output(res, 'modify', thing, completer));
_send(id, 'modify', [thing, data]);
});
return completer.future;
}