{"library":"graphql-query-batcher","type":"library","category":null,"description":"GraphQL Query Batcher is a minimal (<700 bytes) JavaScript library that batches multiple GraphQL queries into a single HTTP request, reducing network overhead. Version 1.0.1 is current (unreleased yet, based on semver). It works by collecting queries within a configurable batch interval (default 6ms) and sending them together to a GraphQL endpoint that supports batching (e.g., Apollo Server). Key differentiators: extremely lightweight, zero dependencies, simple API with fetch and forceFetch methods. Unlike Apollo's batch link, this is standalone and framework-agnostic. Requires the server to accept an array of queries and return an array of results.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","graphql"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install graphql-query-batcher","imports":["import { QueryBatcher } from 'graphql-query-batcher'","const { QueryBatcher } = await import('graphql-query-batcher')","import type { Options } from 'graphql-query-batcher'"]},{"cmd":"yarn add graphql-query-batcher","imports":[]},{"cmd":"pnpm add graphql-query-batcher","imports":[]}],"homepage":"https://github.com/nicksrandall/graphql-query-batcher","github":"https://github.com/nicksrandall/graphql-query-batcher","docs":null,"changelog":null,"pypi":null,"npm":"graphql-query-batcher","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}