# Interface: unstable_TRPCInfiniteQueryHandle<TDef>

> 

Defined in: [tanstack-react-query/src/internals/handles.ts:71](https://github.com/trpc/trpc/blob/772a6ababaab0ae3b76fabf186e5398945f03bab/packages/tanstack-react-query/src/internals/handles.ts#L71)

A serializable reference to an infinite query started on the server (or in a loader).
Read it with `trpc.unstable_$fromHandle(handle, { getNextPageParam })`.

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `TDef` *extends* `ResolverDef` | `ResolverDef` |

## Properties

### \[handleDef\]

> `readonly` **\[handleDef\]**: `TDef` & `object`

Defined in: [tanstack-react-query/src/internals/handles.ts:78](https://github.com/trpc/trpc/blob/772a6ababaab0ae3b76fabf186e5398945f03bab/packages/tanstack-react-query/src/internals/handles.ts#L78)

Type-only: never present at runtime. Required, so only the handle verbs
create handles.

#### Type declaration

##### kind

> **kind**: `"infinite"`

***

### initialCursor?

> `readonly` `optional` **initialCursor**: `null` \| `NonNullable`\<`ExtractCursorType`\<`TDef`\[`"input"`\]\>\>

Defined in: [tanstack-react-query/src/internals/handles.ts:86](https://github.com/trpc/trpc/blob/772a6ababaab0ae3b76fabf186e5398945f03bab/packages/tanstack-react-query/src/internals/handles.ts#L86)

***

### input

> `readonly` **input**: `InfiniteHandleInput`\<`TDef`\[`"input"`\]\>

Defined in: [tanstack-react-query/src/internals/handles.ts:85](https://github.com/trpc/trpc/blob/772a6ababaab0ae3b76fabf186e5398945f03bab/packages/tanstack-react-query/src/internals/handles.ts#L85)

The input the query was started with, without `cursor` and `direction`

***

### queryKey

> `readonly` **queryKey**: `HandleQueryKey`\<`TDef`, `InfiniteHandleInput`\<`TDef`\[`"input"`\]\>, `"infinite"`\>

Defined in: [tanstack-react-query/src/internals/handles.ts:79](https://github.com/trpc/trpc/blob/772a6ababaab0ae3b76fabf186e5398945f03bab/packages/tanstack-react-query/src/internals/handles.ts#L79)
