@comity/graphql-client-fetch
v0.9.0
Published
Fetch GraphQL transport adapter for Comity framework
Readme
@comity/graphql-client-fetch
Fetch transport for @comity/graphql-client.
Purpose
Provides a GraphQL transport implementation that executes operations over HTTP using the Fetch API.
Scope
This package:
- ✅ implements the GraphQL transport contract
- ✅ exposes the Fetch transport class
- ✅ binds to the Fetch API (
fetch,globalThis.fetch,Response,RequestInit)
This package does NOT:
- ❌ define GraphQL client contracts
- ❌ own query building
- ❌ embed application-specific GraphQL policy
- ❌ depend on
@comity/http— the HTTP abstraction and the GraphQL transport abstraction are different boundaries
Public API
FetchGraphqlTransport— Fetch API implementation ofGraphqlTransportFetchTransportOptions— transport configuration type
No exhaustive reference; see docs for constraints.
Documentation
- docs/overview.md
- docs/conventions.md
Related Packages
- @comity/graphql-client — defines the
GraphqlTransportcontract this adapter implements - @comity/graphql-client-ws — WebSocket transport adapter
Status
Stable
Review Completed: 2026-08-28 Reviewer: Automated Audit Remediation Compliance Score: 99.5% (Green)
