FLUTTER ECOSYSTEM

gql_transform_link

GQL Link to transform Requests and Responses. May be used to update context, document, variables, data, errors, etc.

Latest version
1.0.1
30-day downloads
505K
Likes
0
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The gql_transform_link package provides a flexible link for GraphQL operations in Flutter apps, enabling transformation of requests and responses. It allows developers to modify context, documents, variables, data, and errors during the GraphQL execution lifecycle. This is particularly useful for adding authentication headers, normalizing responses, or handling errors globally. Built for integration with the gql Dart library, it supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases
  • Modifying GraphQL request variables before sending
  • Adding authentication headers dynamically
  • Normalizing response data across the app
  • Handling errors globally
  • Transforming documents based on conditions
Key features
  • Extensible request/response transformation
  • Supports context manipulation
  • Integrates with gql Dart library
  • Platform-agnostic design
  • Simple API for custom logic
Suitable for
  • Apps using gql Dart for GraphQL
  • Projects needing dynamic request/response processing
  • Teams implementing centralized error handling
  • Developers building reusable GraphQL middleware
Considerations
  • Requires familiarity with gql Dart library
  • May increase complexity if overused
  • Needs careful testing of transformation logic
  • Not suitable for simple static queries
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add gql_transform_link

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects