# WithIncludeMap interface · @imqueue/pg-sequelize

Source: https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.withincludemap/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-sequelize 4.2.0 — generated reference, not hand-written

The shape sequelize's resolved include tree actually has, as this module reads it.

**Signature:**

```typescript
export interface WithIncludeMap extends InitOptions 
```
**Extends:** [InitOptions](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.initoptions/)

## Remarks

Sequelize builds this while working out an `include`, and does not declare it in its public types. It is declared here because the select-query override walks the tree looking for dynamic views nested inside a join, and needs each node's alias to rewrite the right part of the statement. Of no use to application code.

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [includeMap?](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.withincludemap.includemap/) |  | { \[propertyName: string\]: [WithIncludeMap](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.withincludemap/) & IncludeOptions & [FindOptions](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.findoptions/); } | _(Optional)_ The resolved options of each included association, keyed by property name. |
| [includeNames?](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.withincludemap.includenames/) |  | string\[\] | _(Optional)_ The property names present in `includeMap`. |
| [parent](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.withincludemap.parent/) |  | [WithIncludeMap](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.withincludemap/) | The node this one was included from. |

