Preparing for system design interviews?  Try bugzed.com →

GraphQL Depth Limit TS

JSON →
library 1.1.1 ·javascript
verified Jun 7, 2026

A fork of graphql-depth-limit rebuilt for ESM and CJS with TypeScript declarations. Provides a dead-simple validation rule to limit the total depth of GraphQL queries, protecting against cyclical or deeply nested queries that could cause denial-of-service. Current stable version 1.1.1. Unlike cost-based libraries (graphql-query-complexity, graphql-validation-complexity), this library focuses solely on depth because complexity often increases exponentially with depth (e.g., SQL JOINs). Ships both ESM and CJS bundles with type definitions.

total hits 18
actors 4 distinct systems
last hit 16d ago AhrefsBot
GPTBot
3
Amazonbot
3
ByteDance
3
Humans
8

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