Similar to gql_http_link, This is a GQL Terminating Link to execute requests via Dio using JSON.

Usage

A simple usage example:

import "package:dio/dio.dart";
import "package:gql_link/gql_link.dart";
import "package:gql_dio_link/gql_dio_link.dart";

void main () {
  final dio = Dio();
  final link = Link.from([
    // SomeLink(),
    DioLink("/graphql", client: dio),
  ]);
}

Features and bugs

Please file feature requests and bugs at the GitHub.

Attribution

This code is adapted from gql_http_link.

Libraries