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

# graphql-n-plus-one-resolver

> A GraphQL field resolver executes a database or HTTP query per parent item without DataLoader batching.

## What it flags

A GraphQL field resolver executes a database or HTTP query per parent item without `DataLoader` `.load()` batching.

For a decorated resolver whose parent type appears in a declared GraphQL list, the checker follows the parent key through up to three project service calls. The key must reach a recognized database or HTTP client call. Review batching across those parents and keep the lookup's filters and authorization checks.

## Configuration

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

```json theme={null}
{
  "rules": { "graphql-n-plus-one-resolver": "off" }
}
```


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