graphql_query_compress 0.0.1+1
graphql_query_compress: ^0.0.1+1 copied to clipboard
A package that eliminates unnecessary characters from a GraphQL query, saving several bytes on requests.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add graphql_query_compress
With Flutter:
$ flutter pub add graphql_query_compress
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
graphql_query_compress: ^0.0.1+1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:graphql_query_compress/graphql_query_compress.dart';