major_graphql 0.0.3+1
major_graphql: ^0.0.3+1 copied to clipboard
Runtime component of major_graphql
major_graphql #
major_graphql uses the dart build system and gql to generate built_value classes, primarily for use in client side applications.
Packages #
There is also an example major_todo_app which is livecoded on youtube.
Usage #
build.yaml: #
targets:
$default:
builders:
major_graphql_generator|builder:
enabled: true
options:
schema: major_graphql_example|lib/graphql/schema.graphql
pubspec.yaml: #
dependencies:
major_graphql: ^0.0.1
# or major_graphql_flutter: ^0.0.1 for flutter
dev_dependencies:
major_graphql_generator: ^0.0.1
build_runner: ^1.7.4
dev notes #
irreducibleTypesare types for which selection sets should not be generated. You can supply your own type for them as well by settinggenerate: false. They are still assumed to be built value types unless they are in thescalarsmap. Not that you need to refer to them in the config by their graphql type name.replaceTypesma