Skip to content
tRPC

Partners

Interface: DecorateMutationProcedure<TDef>

On this page

Defined in: createOptionsProxy.ts:240

The helpers for a mutation procedure.

See

https://trpc.io/docs/client/tanstack-react-query/usage#mutationOptions

Extends

  • TypeHelper<TDef>

Type Parameters

Type Parameter
TDef extends ResolverDef

Properties

mutationKey()

mutationKey: () => TRPCMutationKey<TDef["featureFlags"]["keyPrefix"]>

Defined in: createOptionsProxy.ts:255

Calculate the TanStack Mutation Key for a Mutation Procedure

Returns

TRPCMutationKey<TDef["featureFlags"]["keyPrefix"]>

See

https://trpc.io/docs/client/tanstack-react-query/usage#mutationKey


mutationOptions

mutationOptions: TRPCMutationOptions<TDef>

Defined in: createOptionsProxy.ts:248

Create a set of type-safe mutation options that can be passed to useMutation

See

https://trpc.io/docs/client/tanstack-react-query/usage#mutationOptions