A GraphQL network communication client framework for Node.js and browser environments (current version 1.8.4). It integrates GraphQL.js, Apollo Client, Axios, and a WebSocket interface to provide queries, mutations, and subscriptions. Compared to raw Apollo Client, it simplifies setup with a unified Client class and automatic transport selection (HTTP/WebSocket). Development appears slow with no recent updates; compatible with Node >=6.0.0. Differentiators include easy-to-use API and built-in WS support.
npm install graphql-io-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import Client, connect, execute a simple GraphQL query, and disconnect.
Always provide a valid GraphQL endpoint URL: new Client({ url: '...' })Use async/await or .then() when calling connect() and disconnect().
Use const { Client } = require('graphql-io-client')For new projects, consider using @apollo/client directly with its own transport.
Ensure you pass a non-empty string like '{ hello }'.Use named import: import { Client } from 'graphql-io-client'Check the url option passed to the Client constructor.