gql_code_gen 0.2.0-alpha.1 gql_code_gen: ^0.2.0-alpha.1 copied to clipboard
GraphQL code generator and file builder for Dart taking *.graphql files as an input.
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