Skip to main content

graphql_gen_generator 0.1.3 copy "graphql_gen_generator: ^0.1.3" to clipboard
graphql_gen_generator: ^0.1.3 copied to clipboard

build_runner generator for graphql_gen: generates GraphQL field enums for classes annotated with @GenerateEnumFields.

0.1.3 #

  • Network and file errors print a one-line error: message instead of a stack trace.
  • Supports build 5.x (constraint widened to >=4.0.3 <6.0.0).

0.1.2 #

  • Field enums without nested fields no longer declare an unused nestedFields constructor parameter (unused_element_parameter).
  • The barrel no longer exports the enum converters; models import them directly, so a barrel re-exported from models_import causes no unnecessary_import.
  • Argument builders import the models only when an argument needs them.

Run sync --regenerate and build_runner build to pick up the changes.

0.1.1 #

  • Generated field enums no longer trigger prefer_initializing_formals.
  • Enum files with non-lowerCamelCase values ignore constant_identifier_names.
  • README: exclude generated files from analysis.

Run sync --regenerate and build_runner build to pick up the changes.

0.1.0 #

  • Initial release.
  • graphql_gen_generator CLI with init, fetch and sync (--fetch, --dry-run, --regenerate).
  • Schema parsing with package:gql: interfaces, unions, type extensions, descriptions, multi-line arguments, @deprecated.
  • Schema download as SDL or through introspection, with headers from the environment.
  • Freezed models, enums, enum converters, operation names, typed argument builders and a barrel, configured in graphql_gen.yaml.
  • enum_fields build_runner builder for @GenerateEnumFields().
1
likes
160
points
1.12k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

build_runner generator for graphql_gen: generates GraphQL field enums for classes annotated with @GenerateEnumFields.

Repository (GitHub)
View/report issues

Topics

#graphql #codegen #build-runner #freezed

License

MIT (license)

Dependencies

analyzer, args, build, gql, graphql_gen, http, path, source_gen, yaml

More

Packages that depend on graphql_gen_generator