{"library":"graphql-query-complexity","type":"library","category":null,"description":"Validation rule for GraphQL query complexity analysis to protect against resource exhaustion and DoS attacks. Current stable version is 1.1.0. The library is actively maintained by Slicknode and works with graphql-js v15 and v16. Key differentiators: supports multiple estimators (simple, directive, field extensions, custom), allows per-field cost calibration, and integrates as a validation rule into existing GraphQL servers.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","graphql","query","validation","cost","complexity","analysis","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install graphql-query-complexity","imports":["import { createComplexityRule } from 'graphql-query-complexity';","import { simpleEstimator } from 'graphql-query-complexity';","import { directiveEstimator } from 'graphql-query-complexity';"]},{"cmd":"yarn add graphql-query-complexity","imports":[]},{"cmd":"pnpm add graphql-query-complexity","imports":[]}],"homepage":"https://github.com/slicknode/graphql-query-complexity#readme","github":"https://github.com/slicknode/graphql-query-complexity","docs":null,"changelog":null,"pypi":null,"npm":"graphql-query-complexity","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}