Skip to content

Function: mutation() ​

mutation<T, I, R>(entity, options?): MutationDefinitionFor<T, I, R>

Defined in: fate/src/mutation.ts:63

Defines a mutation for a given entity type, preserving the input and output types for transports.

Type Parameters ​

T ​

T extends Entity

I ​

I

R ​

R

Parameters ​

entity ​

T["__typename"]

options? ​

optimistic? ​

OptimisticUpdater<T, I>

Returns ​

MutationDefinitionFor<T, I, R>

Released under the MIT License