Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

QueryOnceConfig.md

28 lines670 Bytes

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