Open History to see the last commit
1---
2id: resolveLiveQueryValue
3title: resolveLiveQueryValue
4---
5
6```ts
7function resolveLiveQueryValue(value, __namedParameters):
8 | Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any>
9 | null;
10```
11
12Defined in: [packages/db/src/live-query-options.ts:346](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-options.ts#L346)
13
14Resolve an adapter's query value to what its observer watches: `null` for a
15disabled query, an existing Collection with sync started, or a live query.
16A query builder whose shape a shared partition can serve gets a pooled view
17instead of its own live-query Collection.
18
19## Parameters
20
21### value
22
23`unknown`
24
25### \_\_namedParameters
26
27#### gcTime?
28
29`number`
30
31#### pool?
32
33 \| `false`
34 \| \{
35 `createPooledLiveQuery`: (`query`, `__namedParameters`) =>
36 \| [`Collection`](../interfaces/Collection.md)\<`any`, `any`, `any`, `StandardSchemaV1`\<`unknown`, `unknown`\>, `any`\>
37 \| `undefined`;
38 `getPooledQueryIdentity`: (`query`) => `string` \| `undefined`;
39\}
40
41#### startSync?
42
43`boolean` = `true`
44
45## Returns
46
47 \| [`Collection`](../interfaces/Collection.md)\<`any`, `any`, `any`, `StandardSchemaV1`\<`unknown`, `unknown`\>, `any`\>
48 \| `null`