gql_code_gen 0.2.0-alpha.1 copy "gql_code_gen: ^0.2.0-alpha.1" to clipboard
gql_code_gen: ^0.2.0-alpha.1 copied to clipboard

discontinued
outdated

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

example/README.md

Add gql_code_gen tou your pubspec.yaml

dev_dependencies:
  gql_code_gen: ^0.2.0

Enable the builders you want by setting enabled: true.

targets:
  $default:
    builders:
      gql_code_gen|schema_builder:
        enabled: true
      gql_code_gen|ast_builder:
        enabled: true
      gql_code_gen|op_builder:
        enabled: true
        options:
          schema: gql_example_cli|lib/schema.graphql
      gql_code_gen|data_builder:
        enabled: true
        options:
          schema: gql_example_cli|lib/schema.graphql
      gql_code_gen|req_builder:
        enabled: true
        options:
          schema: gql_example_cli|lib/schema.graphql

Build using build_runner

pub run build_runner build
11
likes
25
pub points
26%
popularity

Publisher

verified publishergql-dart.dev

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

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

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

More

Packages that depend on gql_code_gen