gql_build 0.3.0-alpha+1630597760444 copy "gql_build: ^0.3.0-alpha+1630597760444" to clipboard
gql_build: ^0.3.0-alpha+1630597760444 copied to clipboard

outdated

Useful builders for your GraphQL SDL and documents. Based on package:gql_code_builder and package:build

example/README.md

Add gql_build to your pubspec.yaml

dependencies:
  gql: ^0.12.0
  gql_exec: ^0.2.0

dev_dependencies:
  gql_build: ^0.1.1

Enable the builders you want by setting enabled: true.

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

Build using build_runner

pub run build_runner build

See gql_example_cli for a usage of the generated classes.

15
likes
0
points
817
downloads

Publisher

verified publishergql-dart.dev

Weekly Downloads

Useful builders for your GraphQL SDL and documents. Based on package:gql_code_builder and package:build

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, built_collection, built_value, built_value_generator, code_builder, dart_style, glob, gql, gql_code_builder, path, yaml

More

Packages that depend on gql_build