Skip to main content
Version: 11.x

Interface: TRPCRequest

Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:51

All requests/responses extends this shape

Extends

Properties

id?

optional id: RequestId

Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:25

Inherited from

Request.id


jsonrpc?

optional jsonrpc: "2.0"

Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:26

Inherited from

Request.jsonrpc


method

method: "query" | "mutation" | "subscription"

Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:31

Inherited from

Request.method


params

params: object

Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:36

input

input: unknown

lastEventId?

optional lastEventId: string

The last event id that the client received

path

path: string

Inherited from

Request.params