{"library":"graphql-no-batched-queries","type":"library","category":null,"description":"GraphQL validation rule to prevent batched queries and mutations, mitigating denial-of-service and brute-force attacks. Current version is 2.0.2, released with TypeScript type definitions and supporting GraphQL v16+. The rule limits the number of root operation fields per request (default 1) and supports custom error messages. Unlike rate-limiting middleware, this is a validation-only approach that integrates directly into GraphQL execution pipelines (e.g., express-graphql, graphql-yoga, graphql-http). Also offers an optional Envelop plugin.","language":"javascript","status":"active","version":"2.0.2","tags":["javascript","graphql","graphql directive","graphql validation","graphql batching","graphql batched","graphql batch query","graphql batch mutation","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install graphql-no-batched-queries","imports":["import createValidation from 'graphql-no-batched-queries'","const createValidation = require('graphql-no-batched-queries')","import { NoBatchedQueriesRule } from 'graphql-no-batched-queries'"]},{"cmd":"yarn add graphql-no-batched-queries","imports":[]},{"cmd":"pnpm add graphql-no-batched-queries","imports":[]}],"homepage":"https://github.com/ivandotv/graphql-no-batched-queries#readme","github":"https://github.com/ivandotv/graphql-no-batched-queries","docs":null,"changelog":null,"pypi":null,"npm":"graphql-no-batched-queries","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}