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

outdated

GraphQL tools for parsing, transforming and printing GraphQL documents.

A library for working with GraphQL documents.

⚠️ This library is under development ⚠️

Usage #

Simply use parse, transform and/or printNode.

import 'package:gql/language.dart';

main() {
  final SourceFile sourceFile = SourceFile.fromString(
    """
    type Foo {
      bar: Bar
      baz: [Baz!]!
    }

    type Bar {
      boo: Boo
    }
    """,
  );

  final DocumentNode document = parse(sourceFile);

  final DocumentNode transformedDocument = transform(
    document,
    [
      MyTransformer(),
      MyOtherTransformer(),
    ],
  );

  final String printed = printNode(transformedDocument);

  print(printed);
}

Features and bugs #

Please file feature requests and bugs at the GitHub.

38
likes
0
pub points
96%
popularity

Publisher

verified publishergql-dart.dev

GraphQL tools for parsing, transforming and printing GraphQL documents.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta, source_span

More

Packages that depend on gql