Skip to content

Type Alias: ClientMutationContext<Entities, M, I, S> ​

ClientMutationContext<Entities, M, I, S> = object

Defined in: fate/lib/refetch-DpAsTpqi.d.mts:1049

Type Parameters ​

Entities ​

Entities

M ​

M extends FateMutations

I ​

I

S ​

S extends ClientSchema = ClientSchema

Properties ​

input ​

input: I

Defined in: fate/lib/refetch-DpAsTpqi.d.mts:1050


store ​

store: ClientStore<Entities, S>

Defined in: fate/lib/refetch-DpAsTpqi.d.mts:1055

Methods ​

mutateRemote() ​

mutateRemote<K>(key, input, options?): Promise<MutationResult<M[K]>>

Defined in: fate/lib/refetch-DpAsTpqi.d.mts:1052

Execute and stage a remote response. Local changes publish only after the resolver succeeds.

Type Parameters ​

K ​

K extends string

Parameters ​

key ​

K

input ​

Omit<MutationInput<M[K]>, "select">

options? ​

Pick<MutationOptions<M[K] & object>, "args" | "select" | "view">

Returns ​

Promise<MutationResult<M[K]>>

Released under the MIT License