Skip to content
pubscout

gql_link

1.1.0, released a year ago by gql-dart.dev

Modular AST-based GraphQL request execution interface.

WASM-readyQuiet but busy
$ flutter pub add gql_link
Source repository

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.

  • dio

    If you prefer a powerful general-purpose HTTP client over a dedicated GraphQL link execution pipeline.

  • http

    If you need a lightweight standard HTTP client without GraphQL-specific execution abstractions.

Works with

Packages commonly used together with gql_link: ones it builds on, ones built on it, and its own family.