Overview
The gql_error_link package is a Flutter/Dart library that provides a GraphQL link for handling execution errors and exceptions during GraphQL operations. It integrates seamlessly with the gql ecosystem, offering a reliable way to intercept and manage errors from GraphQL queries, mutations, and subscriptions. By wrapping the execution flow, it enables developers to implement custom error logging, retry logic, or user feedback mechanisms. Designed for use across all major platforms—Android, iOS, Web, macOS, Windows, and Linux—it enhances the robustness of GraphQL clients in Dart applications.
Use cases
- Handling GraphQL execution errors
- Implementing global error retry logic
- Logging and monitoring GraphQL failures
- Enhancing user experience with error feedback
- Integrating with existing gql client setups
Key features
- Error interception during GraphQL execution
- Support for retry strategies
- Cross-platform compatibility
- Easy integration with gql client
- Customizable error handling logic
Suitable for
- Dart/Flutter apps using GraphQL
- Developers needing centralized error management
- Applications requiring resilient network operations
- Teams implementing structured error logging
- Projects using the gql package ecosystem
Considerations
- Requires the gql package for full functionality
- May need additional configuration for complex retry rules
- Best used within a larger gql client setup
- Limited to GraphQL-related error handling
- Not intended for general-purpose error handling