Skip to content

Function: mutation()

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

Defined in: packages/fate/src/mutation.ts:27

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

MutationDefinition<T, I, R>

Released under the MIT License