> ## 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.

# typeorm-unused-count

> A TypeORM count-and-list query discards its total in immediate tuple destructuring.

## What it flags

A typed TypeORM `findAndCount()`, `findAndCountBy()` or `getManyAndCount()` call returns rows and a count but the awaited destructuring only keeps the rows.

## How to review or fix

Use `find()`, `findBy()` or `getMany()` with the same filters and paging when the count is unnecessary.

## Configuration

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

```json theme={null}
{
  "rules": { "typeorm-unused-count": "off" }
}
```


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