Open History to see the last commit
1---
2id: InjectLiveQueryResult
3title: InjectLiveQueryResult
4---
5
6Defined in: [index.ts:36](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L36)
7
8The result of calling `injectLiveQuery`.
9Contains reactive signals for the query state and data.
10
11## Type Parameters
12
13### TContext
14
15`TContext` *extends* `Context`
16
17## Properties
18
19### collection
20
21```ts
22collection: Signal<
23 | Collection<{ [K in string | number | symbol]: ResultValue<TContext>[K] }, string | number, {
24}, StandardSchemaV1<unknown, unknown>, { [K in string | number | symbol]: ResultValue<TContext>[K] }>
25| null>;
26```
27
28Defined in: [index.ts:42](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L42)
29
30A signal containing the underlying collection instance (null for disabled queries)
31
32***
33
34### data
35
36```ts
37data: Signal<InferResultType<TContext>>;
38```
39
40Defined in: [index.ts:40](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L40)
41
42A signal containing the results as an array, or single result for findOne queries
43
44***
45
46### isCleanedUp
47
48```ts
49isCleanedUp: Signal<boolean>;
50```
51
52Defined in: [index.ts:58](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L58)
53
54A signal indicating whether the collection has been cleaned up
55
56***
57
58### isError
59
60```ts
61isError: Signal<boolean>;
62```
63
64Defined in: [index.ts:56](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L56)
65
66A signal indicating whether the collection has an error
67
68***
69
70### isIdle
71
72```ts
73isIdle: Signal<boolean>;
74```
75
76Defined in: [index.ts:54](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L54)
77
78A signal indicating whether the collection is idle
79
80***
81
82### isLoading
83
84```ts
85isLoading: Signal<boolean>;
86```
87
88Defined in: [index.ts:50](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L50)
89
90A signal indicating whether the collection is currently loading
91
92***
93
94### isReady
95
96```ts
97isReady: Signal<boolean>;
98```
99
100Defined in: [index.ts:52](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L52)
101
102A signal indicating whether the collection is ready
103
104***
105
106### state
107
108```ts
109state: Signal<Map<string | number, { [K in string | number | symbol]: ResultValue<TContext>[K] }>>;
110```
111
112Defined in: [index.ts:38](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L38)
113
114A signal containing the complete state map of results keyed by their ID
115
116***
117
118### status
119
120```ts
121status: Signal<CollectionStatus | "disabled">;
122```
123
124Defined in: [index.ts:48](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L48)
125
126A signal containing the current status of the collection