gql_code_gen 0.1.5
gql_code_gen: ^0.1.5
gql_code_gen: ^0.2.0-alpha.1

Dart native js
Flutter Android iOS web

GraphQL code generator and file builder for Dart taking *.graphql files as an input.

A package for Dart code generation from GraphQL source.

Includes:

  • package:gql/dart.dart for generating Dart code from GraphQL AST nodes;
  • package:gql/ast_builder.dart for pre-parsing GraphQL into Dart source files.

Usage #

A simple usage example build.yaml:

targets:
  $default:
    builders:
      ast_builder:

The generated source depends on package:gql/ast.dart so you'll need to add it to your pubspec.yaml

dependencies:
  gql: ^0.10.0

Features and bugs #

Please file feature requests and bugs at the issue tracker.

10
likes
85
pub points
92%
popularity

Publisher

gql-dart.dev

GraphQL code generator and file builder for Dart taking *.graphql files as an input.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

build, code_builder, collection, dart_style, glob, gql, meta, path, pedantic, source_span

More

Packages that depend on gql_code_gen