Open History to see the last commit
1---
2id: QueryOnceConfig
3title: QueryOnceConfig
4---
5
6# Interface: QueryOnceConfig\<TContext\>
7
8Defined in: [packages/db/src/query/query-once.ts:8](https://github.com/TanStack/db/blob/main/packages/db/src/query/query-once.ts#L8)
9
10Configuration options for queryOnce
11
12## Type Parameters
13
14### TContext
15
16`TContext` *extends* [`Context`](Context.md)
17
18## Properties
19
20### query
21
22```ts
23query:
24 | QueryBuilder<TContext>
25| (q) => QueryBuilder<TContext>;
26```
27
28Defined in: [packages/db/src/query/query-once.ts:12](https://github.com/TanStack/db/blob/main/packages/db/src/query/query-once.ts#L12)
29
30Query builder function that defines the query