Mutate

constructor(key: MutationKey<T, S>, variable: S, revision: String, marker: Marker = Marker.None, callback: MutationCallback<T>? = null)

Parameters

key

Instance of a class implementing MutationKey.

variable

The variable to be mutated.

revision

The revision of the mutation state.

marker

The marker with additional information based on the caller of a mutation.

callback

The callback to receive the result of the mutation.