updateOne method

Future<Optional<T>> updateOne(
  1. QueryExecutor executor
)

Implementation

Future<Optional<T>> updateOne(QueryExecutor executor) {
  return update(executor).then(
      (it) => it.isEmpty ? Optional.empty() : Optional.ofNullable(it.first));
}