# includesRuntime

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

```ts
const includesRuntime: object;
```

Defined 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)

The include materializer. `include()`, `toArray()`, and `materialize()`
carry it onto the query IR, so other apps do not bundle it.

## Type Declaration

### createBucketFacades

```ts
createBucketFacades: (...args) => BucketFacadeAdapter;
```

#### Parameters

##### args

...\[`parentId`: `string`, `compilations`: `BucketFacadeCompilation`[], `onMessages`: (`count`) => `void`, `resolveRoot`: `ValueResolver`\]

#### Returns

`BucketFacadeAdapter`

### materializeCompilation

```ts
materializeCompilation: (compilation, getRootKey?) => MaterializedRootCompilation;
```

Compiles inline includes into the same D2 graph as their parent relation.
Collection-valued includes become inert bucket references. The public facade
adapter resolves those references after the graph reaches quiescence.

#### Parameters

##### compilation

`CompilationResult`

##### getRootKey?

(`row`) => `unknown`

#### Returns

`MaterializedRootCompilation`
