Type Alias: ClientMutationContext<Entities, M, I, S>
ClientMutationContext<
Entities,M,I,S> =object
Defined in: fate/src/client-schema.ts:285
Type Parameters
Entities
Entities
M
M extends FateMutations
I
I
S
S extends ClientSchema = ClientSchema
Properties
input
input:
I
Defined in: fate/src/client-schema.ts:291
store
store:
ClientStore<Entities,S>
Defined in: fate/src/client-schema.ts:298
Methods
mutateRemote()
mutateRemote<
K>(key,input,options?):Promise<MutationResult<M[K]>>
Defined in: fate/src/client-schema.ts:293
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]>>