Overview
A lightweight Flutter/Dart library that converts GraphQL queries into REST-compatible HTTP requests. It enables developers to use standard HTTP clients for executing GraphQL operations without requiring a dedicated GraphQL client. This simplifies integration with existing REST-based infrastructure and tools, especially in environments where GraphQL clients are not available or preferred. The package supports all major platforms, making it ideal for cross-platform applications needing flexible API communication.
Use cases
- Converting GraphQL queries to REST for legacy systems
- Using standard HTTP clients with GraphQL data
- Simplifying API integration in constrained environments
- Enabling GraphQL usage in apps with strict HTTP client policies
- Supporting hybrid REST-GraphQL backend architectures
Key features
- Lightweight and minimal dependency
- Automatic query transformation from GraphQL to REST
- Cross-platform compatibility
- Works with any HTTP client
- Simple integration via pub add command
Suitable for
- Developers using REST clients but needing GraphQL data
- Teams migrating from REST to GraphQL gradually
- Projects with strict dependency constraints
- Applications targeting multiple platforms
- Use cases requiring flexible API layer design
Considerations
- Limited to basic GraphQL query support
- No built-in error handling or caching
- Does not support mutations or subscriptions
- Requires manual management of headers and authentication
- Not suitable for complex GraphQL schemas