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

IncludesSubquery.md

188 lines3.1 KB

1---
2id: IncludesSubquery
3title: IncludesSubquery
4---
5​
6Defined in: [packages/db/src/query/ir.ts:184](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L184)
7​
8## Extends
9​
10- `BaseExpression`
11​
12## Constructors
13​
14### Constructor
15​
16```ts
17new IncludesSubquery(
18 query,
19 correlationField,
20 childCorrelationField,
21 fieldName,
22 parentFilters?,
23 parentProjection?,
24 materialization?,
25 scalarField?): IncludesSubquery;
26```
27​
28Defined in: [packages/db/src/query/ir.ts:186](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L186)
29​
30#### Parameters
31​
32##### query
33​
34[`QueryIR`](../interfaces/QueryIR.md)
35​
36##### correlationField
37​
38[`PropRef`](PropRef.md)
39​
40##### childCorrelationField
41​
42[`PropRef`](PropRef.md)
43​
44##### fieldName
45​
46`string`
47​
48##### parentFilters?
49​
50[`Where`](../type-aliases/Where.md)[]
51​
52##### parentProjection?
53​
54[`PropRef`](PropRef.md)\<`any`\>[]
55​
56##### materialization?
57​
58[`IncludesMaterialization`](../type-aliases/IncludesMaterialization.md) = `...`
59​
60##### scalarField?
61​
62`string`
63​
64#### Returns
65​
66`IncludesSubquery`
67​
68#### Overrides
69​
70```ts
71BaseExpression.constructor
72```
73​
74## Properties
75​
76### \_\_returnType
77​
78```ts
79readonly __returnType: any;
80```
81​
82Defined in: [packages/db/src/query/ir.ts:84](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L84)
83​
84**`Internal`**
85​
86- Type brand for TypeScript inference
87​
88#### Inherited from
89​
90```ts
91BaseExpression.__returnType
92```
93​
94***
95​
96### childCorrelationField
97​
98```ts
99childCorrelationField: PropRef;
100```
101​
102Defined in: [packages/db/src/query/ir.ts:189](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L189)
103​
104***
105​
106### correlationField
107​
108```ts
109correlationField: PropRef;
110```
111​
112Defined in: [packages/db/src/query/ir.ts:188](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L188)
113​
114***
115​
116### fieldName
117​
118```ts
119fieldName: string;
120```
121​
122Defined in: [packages/db/src/query/ir.ts:190](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L190)
123​
124***
125​
126### materialization
127​
128```ts
129materialization: IncludesMaterialization;
130```
131​
132Defined in: [packages/db/src/query/ir.ts:193](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L193)
133​
134***
135​
136### parentFilters?
137​
138```ts
139optional parentFilters: Where[];
140```
141​
142Defined in: [packages/db/src/query/ir.ts:191](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L191)
143​
144***
145​
146### parentProjection?
147​
148```ts
149optional parentProjection: PropRef<any>[];
150```
151​
152Defined in: [packages/db/src/query/ir.ts:192](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L192)
153​
154***
155​
156### query
157​
158```ts
159query: QueryIR;
160```
161​
162Defined in: [packages/db/src/query/ir.ts:187](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L187)
163​
164***
165​
166### scalarField?
167​
168```ts
169optional scalarField: string;
170```
171​
172Defined in: [packages/db/src/query/ir.ts:194](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L194)
173​
174***
175​
176### type
177​
178```ts
179type: "includesSubquery";
180```
181​
182Defined in: [packages/db/src/query/ir.ts:185](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L185)
183​
184#### Overrides
185​
186```ts
187BaseExpression.type
188```