Open History to see the last commit
1---
2id: includesRuntime
3title: includesRuntime
4---
5
6```ts
7const includesRuntime: object;
8```
9
10Defined in: [packages/db/src/query/live/includes-runtime.ts:8](https://github.com/TanStack/db/blob/main/packages/db/src/query/live/includes-runtime.ts#L8)
11
12The include materializer. `include()`, `toArray()`, and `materialize()`
13carry it onto the query IR, so other apps do not bundle it.
14
15## Type Declaration
16
17### createBucketFacades()
18
19```ts
20createBucketFacades: (...args) => BucketFacadeAdapter;
21```
22
23#### Parameters
24
25##### args
26
27...\[`string`, `BucketFacadeCompilation`[], (`count`) => `void`\]
28
29#### Returns
30
31`BucketFacadeAdapter`
32
33### materializeCompilation()
34
35```ts
36materializeCompilation: (compilation, getRootKey?) => MaterializedRootCompilation;
37```
38
39Compiles inline includes into the same D2 graph as their parent relation.
40Collection-valued includes become inert bucket references. The public facade
41adapter resolves those references after the graph reaches quiescence.
42
43#### Parameters
44
45##### compilation
46
47`CompilationResult`
48
49##### getRootKey?
50
51(`row`) => `unknown`
52
53#### Returns
54
55`MaterializedRootCompilation`