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

QueryOnceConfig.md

30 lines712 Bytes

1---
2id: QueryOnceConfig
3title: QueryOnceConfig
4---
5​
6# Interface: QueryOnceConfig\<TContext\>
7​
8Defined in: [packages/db/src/query/query-once.ts:18](https://github.com/TanStack/db/blob/main/packages/db/src/query/query-once.ts#L18)
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 | (q) => QueryBuilder<TContext> & RootObjectResultConstraint<TContext>
25| QueryBuilder<TContext> & RootObjectResultConstraint<TContext>;
26```
27​
28Defined in: [packages/db/src/query/query-once.ts:22](https://github.com/TanStack/db/blob/main/packages/db/src/query/query-once.ts#L22)
29​
30Query builder function that defines the query