graphql_query_compress 0.0.1 copy "graphql_query_compress: ^0.0.1" to clipboard
graphql_query_compress: ^0.0.1 copied to clipboard

Compress GraphQL query string

example/graphql_query_compress_example.dart

import 'package:graphql_query_compress/graphql_query_compress.dart';

void main() {
  const query = r'''
    mutation CreateShow($input: CreateShowInput!) {
      createShow(input: $input) {
        show {
          id # we need this ID to buy a ticket
          __typename
        }
        __typename
      }
    }
    ''';
    final compressedQuery = compressGraphqlQuery(query);
    print(compressedQuery);
    // output: "mutation CreateShow($input:CreateShowInput!){createShow(input:$input){show{id __typename}__typename}}"

}
7
likes
0
pub points
60%
popularity

Publisher

unverified uploader

Compress GraphQL query string

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

gql_exec, gql_link

More

Packages that depend on graphql_query_compress