# query.overrideJoin() function · @imqueue/pg-sequelize

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

Traverses given query object, lookups for includes matching the given arguments of include options and overrides those are matching by model and alias with the provided option.

**Signature:**

```typescript
export function overrideJoin(queryOptions: FindOptions | CountOptions, ...options: IncludeOptions[]): FindOptions | CountOptions;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| queryOptions | FindOptions \| CountOptions | Query whose includes are to be overridden. |
| options | IncludeOptions\[\] | Include options to apply, matched by model and alias. |


**Returns:**

FindOptions \| CountOptions

The same query options.

