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

# prisma-count-for-existence

> A Prisma query counts all matches only to check whether any row exists.

## What it flags

An awaited numeric Prisma `count()` with no options or only `where` is used solely as a zero-or-nonzero test.

## How to review or fix

Read one row with the same filter and a small projection when only existence matters.

## Configuration

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

```json theme={null}
{
  "rules": { "prisma-count-for-existence": "off" }
}
```


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