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

InjectLiveQueryResult.md

75 lines1.7 KB

Defined in: angular-db/src/index.ts:53

The status and flag signals every injectLiveQuery result has.

Extends

Type Parameters

TContext

TContext extends Context

Properties

collection

collection: Signal<
  | Collection<{ [K in string | number | symbol]: ResultValue<TContext>[K] }, string | number, {
}, StandardSchemaV1<unknown, unknown>, { [K in string | number | symbol]: ResultValue<TContext>[K] }>
| null>;

Defined in: angular-db/src/index.ts:61

A signal containing the underlying collection instance (null for disabled queries)


data

data: Signal<InferResultType<TContext>>;

Defined in: angular-db/src/index.ts:59

A signal containing the results as an array, or single result for findOne queries


state

state: Signal<Map<string | number, { [K in string | number | symbol]: ResultValue<TContext>[K] }>>;

Defined in: angular-db/src/index.ts:57

A signal containing the complete state map of results keyed by their ID


status

status: Signal<CollectionStatus | "disabled">;

Defined in: angular-db/src/index.ts:48

A signal containing the current status of the collection

Inherited from

InjectLiveQueryFlags.status