# @escape.tech/graphql-armor-max-depth

> Limit the depth allowed in a GraphQL query.

Latest version **2.4.2** (published 2025-08-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @escape.tech/graphql-armor-max-depth
pnpm add @escape.tech/graphql-armor-max-depth
yarn add @escape.tech/graphql-armor-max-depth
bun add @escape.tech/graphql-armor-max-depth
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.4.2 |
| Published | 2025-08-22 |
| First published | 2022-08-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 1 |
| Unpacked size | 15.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 589 |
| Author | Escape Technologies SAS |
| Maintainers | icarossio, steffthestunt, gby56, mathieu.rousse |

## Links

- npm: https://www.npmjs.com/package/@escape.tech/graphql-armor-max-depth
- Repository: https://github.com/Escape-Technologies/graphql-armor
- Issues: https://github.com/Escape-Technologies/graphql-armor/issues
- npm.io page: https://npm.io/package/@escape.tech/graphql-armor-max-depth

## Dependencies (1)

- [graphql](https://npm.io/package/graphql.md) ^16.10.0

## Recent versions

- 2.4.2 (latest) — 2025-08-22
- 2.4.1 — 2025-06-16
- 2.4.0 — 2024-10-11
- 2.3.0 — 2024-05-23
- 2.2.0 — 2023-06-27
- 2.1.0 — 2023-06-18
- 2.0.0 — 2023-05-29
- 1.8.4 — 2023-04-06
- 1.8.3 — 2023-03-28
- 1.8.2 — 2023-03-17
- 1.8.1 — 2023-01-09
- 1.8.0 — 2022-11-22
- 1.7.0 — 2022-10-10
- 1.6.0 — 2022-09-29
- 1.5.1 — 2022-09-28
- … 12 more at https://npm.io/package/@escape.tech/graphql-armor-max-depth/versions

## README

# @escape.tech/graphql-armor-max-depth

**Limit** the **depth** of a GraphQL document.

It is used to prevent too large queries that could lead to overfetching or **DOS attack**.

## Installation

This plugin is bundled within GraphQL Armor, so you don't need to install it separately.

However, for a standalone usage, you can install it with:

```bash
# npm
npm install @escape.tech/graphql-armor-max-depth

# yarn
yarn add @escape.tech/graphql-armor-max-depth
```

## Documentation

[https://escape.tech/graphql-armor/docs/plugins/max-depth](https://escape.tech/graphql-armor/docs/plugins/max-depth)

---
_Source: https://npm.io/package/@escape.tech/graphql-armor-max-depth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
