Thin GraphQL client powered by fetch. Current stable version 1.0.1 (last released in 2016). Very minimal wrapper around fetch that sends POST requests with JSON body. No built-in caching, batching, or subscriptions. Different from Apollo Client or urql in that it offers zero abstraction over HTTP—just a convenience function. Ideal for simple use cases where you want to avoid heavy dependencies. Low release cadence; not actively maintained.
npm install graphql-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a client from an endpoint, executing a query with variables, handling errors.
Consider migrating to a modern client like graphql-request or Apollo Client.
Ensure no other fetch polyfill is loaded, or use a bundler that avoids duplicates.
Always check result.errors existence before accessing data.
Use dynamic import or a bundler that handles CJS.
Use default import: import graphqlFetch from 'graphql-fetch'
Install isomorphic-fetch or use Node 18+ with global fetch.
No dependency data recorded yet.