{"library":"graphql-depth-limit","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"1.1.0","tags":["javascript","graphql","complexity","query","depth","limit"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install graphql-depth-limit","imports":["import depthLimit from 'graphql-depth-limit'","const depthLimit = require('graphql-depth-limit').default","import depthLimit, { DepthLimitOptions } from 'graphql-depth-limit'"]},{"cmd":"yarn add graphql-depth-limit","imports":[]},{"cmd":"pnpm add graphql-depth-limit","imports":[]}],"homepage":"https://github.com/stems/graphql-depth-limit#readme","github":"https://github.com/stems/graphql-depth-limit","docs":null,"changelog":null,"pypi":null,"npm":"graphql-depth-limit","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}