gql_link
1.1.0, released a year ago by gql-dart.dev
Modular AST-based GraphQL request execution interface.
WASM-readyQuiet but busy
What it does
Provides a composable link interface to build GraphQL execution pipelines. Allows chaining custom behaviors like deduplication and routing before hitting a terminating transport link.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a modular, chainable pipeline for executing GraphQL operations
- You are building or extending GraphQL client tooling in Dart/Flutter
Skip it when
- You are looking for a high-level all-in-one GraphQL client framework rather than low-level link primitives
- Your project relies strictly on simple REST APIs
Strengths
- Highly modular and composable link-based architecture
- Supports custom links via classes, functions, or routers
Weaknesses
- Requires combining with other packages like http link to fully function
- Documentation for advanced usage relies heavily on external links
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Not documented
import "package:gql_link/gql_link.dart";
void main () {
final link = Link.from([
MyCustomLink(),
DedupeLink(),
HttpLink("/graphql"),
]);
}Alternatives
Packages that do the same job and could replace gql_link.
Works with
Packages commonly used together with gql_link: ones it builds on, ones built on it, and its own family.
- gqlgql_link depends on itParse, transform and print GraphQL documents in Dart.
- normalizeSame familyNormalizes and denormalizes GraphQL responses to a cache-friendly map structure.
- gql_code_builderSame familyDart code builder generating typed classes from GraphQL documents and SDL
- gql_buildSame familyUseful builders for your GraphQL SDL and documents.
- ferry_generatorSame familyA Dart code generator to create fully typed OperationRequests for the ferry GraphQL client.
- gql_http_linkBuilt on gql_linkHTTP link for executing GraphQL requests via JSON.
- graphqlBuilt on gql_linkA Dart GraphQL client offering queries, mutations, subscriptions and cache management.
- gql_dio_linkBuilt on gql_linkA GraphQL terminating link to execute requests via Dio using JSON.