Drop-in replacement for nodejs fetch that optimizes GraphQL requests by automatically handling pagination for root-level fields with `first: "auto"`. Version 1.0.11, maintained infrequently. Unlike generic fetch wrappers, it specifically merges paginated results transparently, supports sequential fetch mode (useful for underpowered CMS backends), and includes debug capabilities. Works only with schemas providing `nodes` and `pageInfo { hasNextPage, endCursor }`.
npm install graphql-fetch-optimizerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Patches fetch to automatically paginate GraphQL root fields marked with first: 'auto'.
Define $varUsage variable before using it.
Ensure your query uses first: 'auto' on root fields; nested pagination is not supported.
Use import instead of require, or ensure your project is configured for ESM.
Change to import syntax or set { "type": "module" } in package.json.Use 'graphql-fetch-optimizer/paginate.js' instead of 'graphql-fetch-optimizer/paginate'.
Use import { createPatchedFetch } from 'graphql-fetch-optimizer'.No dependency data recorded yet.