# Type Alias: TRPCMutationKey<TPrefixEnabled>

> 

> **TRPCMutationKey**\<`TPrefixEnabled`\>: `TPrefixEnabled` *extends* `true` ? [`TRPCMutationKeyWithPrefix`](https://trpc.io/docs/typedoc/tanstack-react-query/type-aliases/TRPCMutationKeyWithPrefix.md) : [`TRPCMutationKeyWithoutPrefix`](https://trpc.io/docs/typedoc/tanstack-react-query/type-aliases/TRPCMutationKeyWithoutPrefix.md)

Defined in: [tanstack-react-query/src/internals/types.ts:162](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/tanstack-react-query/src/internals/types.ts#L162)

A tRPC mutation key, with a prefix if `TPrefixEnabled` is `true`.

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `TPrefixEnabled` *extends* `boolean` | `false` |

## See

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