🚥 Moved to gql-dart/gql/links/gql_dio_link
.
ℹ️ Please go to gql-dart/gql
for more info.
Similar to gql_http_link
, This is a GQL Terminating Link to execute requests via Dio using JSON.
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),
]);
}
Please file feature requests and bugs at the GitHub.
This code is adapted from gql_http_link.