update method

  1. @override
FutureOr<UpdateDbResult> update(
  1. Access access
)
override

Implementation

@override
FutureOr<UpdateDbResult> update(Access access) {
  if (access.data == null) {
    throw BadRequests();
  }
  if (access.identifier == null) {
    throw BadRequests();
  }
  data[access.collection]?[access.identifier]?.addAll(access.data!);
  return UpdateDbResult(data: null);
}