mutate method

Future<DataType?> mutate(
  1. VariablesType variables, {
  2. bool scheduleToQueue = false,
})

Implementation

Future<DataType?> mutate(
  VariablesType variables, {
  bool scheduleToQueue = false,
}) {
  if (isMutating && !scheduleToQueue) {
    return Future.value(state.data);
  }
  return _operate(variables).then((_) => data);
}