{"library":"graphql-depth-limit-ts","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.1.1","tags":["javascript","graphql","complexity","esm","cjs","typescript","dts","query","depth"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install graphql-depth-limit-ts","imports":["import depthLimit from 'graphql-depth-limit-ts'","import type { DepthLimitOptions } from 'graphql-depth-limit-ts'","import depthLimit from 'graphql-depth-limit-ts'"]},{"cmd":"yarn add graphql-depth-limit-ts","imports":[]},{"cmd":"pnpm add graphql-depth-limit-ts","imports":[]}],"homepage":"https://github.com/sonofmagic/graphql-depth-limit-ts#readme","github":"https://github.com/sonofmagic/graphql-depth-limit-ts","docs":null,"changelog":null,"pypi":null,"npm":"graphql-depth-limit-ts","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}