Skip to main content
Version: 11.x

Function: getMutationKey()

getMutationKey<TProcedure>(procedure): TRPCMutationKey

Method to extract the mutation key for a procedure

Type Parameters

Type Parameter
TProcedure extends DecoratedMutation<any>

Parameters

ParameterTypeDescription
procedureTProcedureprocedure

Returns

TRPCMutationKey

See

https://trpc.io/docs/v11/getQueryKey#mutations

Defined in

packages/react-query/src/internals/getQueryKey.ts:132