Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Mutation

class Mutation<TData = unknown, TError = unknown, TVariables = void, TContext = unknown> extends Removable {
constructor(config: MutationConfig<TData, TError, TVariables, TContext>);
private dispatch;
private logger;
private mutationCache;
private observers;
private retryer?;
meta: MutationMeta | undefined;
mutationId: number;
options: MutationOptions<TData, TError, TVariables, TContext>;
state: MutationState<TData, TError, TVariables, TContext>;
 
protected optionalRemove(): void;
addObserver(observer: MutationObserver<any, any, any, any>): void;
continue(): Promise<TData>;
execute(): Promise<TData>;
removeObserver(observer: MutationObserver<any, any, any, any>): void;
setState(state: MutationState<TData, TError, TVariables, TContext>): void;
}

§Type Parameters

§
TData = unknown
[src]
§
TError = unknown
[src]
§
TVariables = void
[src]
§
TContext = unknown
[src]

§Extends

§
Removable
[src]

§Constructors

§
new Mutation(config: MutationConfig<TData, TError, TVariables, TContext>)
[src]

§Properties

§
dispatch
[src]
§
logger
[src]
§
mutationCache
[src]
§
observers
[src]
§
retryer
[src]
§
meta: MutationMeta | undefined
[src]
§
mutationId: number
[src]
§
options: MutationOptions<TData, TError, TVariables, TContext>
[src]
§
state: MutationState<TData, TError, TVariables, TContext>
[src]

§Methods

§
optionalRemove(): void protected
[src]
§
addObserver(observer: MutationObserver<any, any, any, any>): void
[src]
§
continue(): Promise<TData>
[src]
§
execute(): Promise<TData>
[src]
§
removeObserver(observer: MutationObserver<any, any, any, any>): void
[src]
§
setState(state: MutationState<TData, TError, TVariables, TContext>): void
[src]