Overview of The Graph Client Tools
mainThe Graph Client Tools are consumer-side utilities designed for both browser and NodeJS environments. They are intended to enrich the developer experience (DX) when consuming data from The Graph's GraphQL API.
Key capabilities include:
- Multiple Indexers: Support for using multiple indexers simultaneously via various fetch strategies.
- Fetch Strategies: Implement
timeout,retry,fallback,race, andhighestValuestrategies. - Client-Side Composition: Improved execution planning (based on GraphQL-Mesh).
- Cross-chain Support: Handling cross-chain subgraphs as a single source.
- Advanced Data Handling: Automatic block tracking, automatic pagination, and
@livequeries (polling-based). - Integrations: Native support for
@apollo/clientandurql. - TypeScript Support: Built-in GraphQL Codegen and
TypedDocumentNodesupport. - Standalone Mode: Can be used as a raw execution engine without a wrapping GraphQL client, or integrated with existing GraphQL clients.