# Class: TRPCUntypedClient<TInferrable>

> 

Defined in: [packages/client/src/internals/TRPCUntypedClient.ts:114](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/internals/TRPCUntypedClient.ts#L114)

A client that calls procedures by path string, without types.
`createTRPCClient` wraps one.

## Type Parameters

| Type Parameter |
| ------ |
| `TInferrable` *extends* `InferrableClientTypes` |

## Constructors

### new TRPCUntypedClient()

> **new TRPCUntypedClient**\<`TInferrable`\>(`opts`): [`TRPCUntypedClient`](https://trpc.io/docs/typedoc/client/index/classes/TRPCUntypedClient.md)\<`TInferrable`\>

Defined in: [packages/client/src/internals/TRPCUntypedClient.ts:119](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/internals/TRPCUntypedClient.ts#L119)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `opts` | `CreateTRPCClientOptions`\<`TInferrable`\> |

#### Returns

[`TRPCUntypedClient`](https://trpc.io/docs/typedoc/client/index/classes/TRPCUntypedClient.md)\<`TInferrable`\>

## Properties

### runtime

> `readonly` **runtime**: [`TRPCClientRuntime`](https://trpc.io/docs/typedoc/client/index/interfaces/TRPCClientRuntime.md)

Defined in: [packages/client/src/internals/TRPCUntypedClient.ts:116](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/internals/TRPCUntypedClient.ts#L116)

## Methods

### mutation()

> **mutation**(`path`, `input`?, `opts`?): `Promise`\<`unknown`\>

Defined in: [packages/client/src/internals/TRPCUntypedClient.ts:175](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/internals/TRPCUntypedClient.ts#L175)

Calls a mutation.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `path` | `string` |
| `input`? | `unknown` |
| `opts`? | [`TRPCRequestOptions`](https://trpc.io/docs/typedoc/client/index/interfaces/TRPCRequestOptions.md) |

#### Returns

`Promise`\<`unknown`\>

***

### query()

> **query**(`path`, `input`?, `opts`?): `Promise`\<`unknown`\>

Defined in: [packages/client/src/internals/TRPCUntypedClient.ts:165](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/internals/TRPCUntypedClient.ts#L165)

Calls a query.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `path` | `string` |
| `input`? | `unknown` |
| `opts`? | [`TRPCRequestOptions`](https://trpc.io/docs/typedoc/client/index/interfaces/TRPCRequestOptions.md) |

#### Returns

`Promise`\<`unknown`\>

***

### subscription()

#### Call Signature

> **subscription**(`path`, `input`, `opts`): `Unsubscribable`

Defined in: [packages/client/src/internals/TRPCUntypedClient.ts:190](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/internals/TRPCUntypedClient.ts#L190)

Starts a subscription. With callbacks, returns what stops it. Without,
returns an async iterator to read it with `for await`, which `signal`,
`break` or `return()` stops. It can be iterated once.

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `path` | `string` |
| `input` | `unknown` |
| `opts` | `TRPCSubscriptionCallbacks`\<`unknown`, [`TRPCClientError`](https://trpc.io/docs/typedoc/client/index/classes/TRPCClientError.md)\<`AnyRouter`\>\> & [`TRPCRequestOptions`](https://trpc.io/docs/typedoc/client/index/interfaces/TRPCRequestOptions.md) |

##### Returns

`Unsubscribable`

##### See

https://trpc.io/docs/client/vanilla/setup#5-use-subscriptions

#### Call Signature

> **subscription**\<`TOpts`\>(`path`, `input`, `opts`?): `AsyncIterableIterator`\<`unknown`\>

Defined in: [packages/client/src/internals/TRPCUntypedClient.ts:196](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/internals/TRPCUntypedClient.ts#L196)

Starts a subscription. With callbacks, returns what stops it. Without,
returns an async iterator to read it with `for await`, which `signal`,
`break` or `return()` stops. It can be iterated once.

##### Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `TOpts` *extends* [`TRPCRequestOptions`](https://trpc.io/docs/typedoc/client/index/interfaces/TRPCRequestOptions.md) & `Partial`\<`TRPCSubscriptionObserver`\<`unknown`, [`TRPCClientError`](https://trpc.io/docs/typedoc/client/index/classes/TRPCClientError.md)\<`AnyRouter`\>\>\> | [`TRPCRequestOptions`](https://trpc.io/docs/typedoc/client/index/interfaces/TRPCRequestOptions.md) |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `path` | `string` |
| `input` | `unknown` |
| `opts`? | `TRPCSubscriptionWithoutCallbacks`\<`TOpts`\> |

##### Returns

`AsyncIterableIterator`\<`unknown`\>

##### See

https://trpc.io/docs/client/vanilla/setup#5-use-subscriptions
