Core logic library for the Altair GraphQL client ecosystem (version 8.5.7, npm-only, no releases since Oct 2024). Provides shared utilities including request building, response parsing, introspection helpers, and state management primitives used by altair-gql and altair-express-middleware. Unlike larger alternatives like graphql-request or Apollo Client, this is a lightweight, framework-agnostic core intended to be consumed by Altair wrappers. Auto-generated TypeScript definitions included; ESM-only since v8, with Node 12+ requirement.
npm install altair-graphql-coreNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a client with URL and optional auth headers, then executing a GraphQL query.
Migrate to ESM (use import syntax) or use dynamic import() inside CJS.
Runtime test your GraphQL operations; don't rely solely on types.
Update to use { query, variables, operationName } object.Install cross-fetch and import it at entry point.
Change to import syntax: `import ... from 'altair-graphql-core'` or use dynamic import: `const m = await import('altair-graphql-core')`.Ensure correct import and that client is created with `createClient()` per docs.
Install `cross-fetch` and add `import 'cross-fetch/polyfill'` at your app entry point.
No dependency data recorded yet.