Preparing for system design interviews?  Try bugzed.com →

graphql-depth-limit

JSON →
library 1.1.0 ·javascript maintenance
verified Jun 7, 2026

A GraphQL validation rule that limits the total depth of incoming queries to prevent cyclical or excessively deep queries that could cause denial-of-service attacks. Version 1.1.0 is the latest stable release. Maintained as needed (no recent commits). Compared to alternatives like graphql-query-complexity or graphql-validation-complexity which assign per-field or per-type costs, this library uses a simpler depth-based metric that can catch exponential complexity growth, e.g. from repeated joins. Works with any GraphQL server that supports validation rules, such as express-graphql and koa-graphql.

total hits 22
actors 5 distinct systems
last hit 17d ago AhrefsBot
ByteDance
4
GPTBot
3
Amazonbot
3
Humans
10

top countries 🇸🇬 Singapore · 🇺🇸 United States · VN · 🇫🇷 France · 🇨🇦 Canada