mutate

suspend fun <T, S> MutationCommand.Context<T>.mutate(key: MutationKey<T, S>, variable: S, retryFn: RetryFn<T> = options.exponentialBackOff(onRetry = onRetryCallback(key.id))): Result<T>

Mutates the data.

Return

The result of the mutation.

Parameters

key

Instance of a class implementing MutationKey.

variable

The variable to be mutated.

retryFn

The retry function.