DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/functions/resolveLiveQueryValue.md
resolveLiveQueryValue
ts
function resolveLiveQueryValue(value, __namedParameters):
| Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any>
| null;Defined in: packages/db/src/live-query-options.ts:346
Resolve an adapter's query value to what its observer watches: null for a disabled query, an existing Collection with sync started, or a live query. A query builder whose shape a shared partition can serve gets a pooled view instead of its own live-query Collection.
Parameters#
value#
unknown
__namedParameters#
gcTime?#
number
pool?#
| false | { createPooledLiveQuery: (query, __namedParameters) => | Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any> | undefined; getPooledQueryIdentity: (query) => string | undefined; }
startSync?#
boolean = true
Returns#
| Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any> | null