> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# orm-cartesian-include

> One query joins two or more one-to-many relations, so the returned rows multiply.

## What it flags

One TypeORM or Sequelize query joins two or more collection relations (`leftJoinAndSelect`, `relations`, `include`), so the rows multiply as the product of their sizes.

## How to review or fix

Load the second collection in its own query (`relationLoadStrategy: 'query'`, Sequelize `separate: true`).

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "orm-cartesian-include": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.