Skip to content

Function: mutation() ​

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

Defined in: fate/lib/refetch-BQzdlxXW.d.mts:1378

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"]

Returns ​

MutationDefinitionFor<T, I, R>

Released under the MIT License