ql_gen 0.1.8 copy "ql_gen: ^0.1.8" to clipboard
ql_gen: ^0.1.8 copied to clipboard

Generate strongly typed Dart GraphQL client helpers from schema files, including models, selectors, and operation builders for queries and mutations.

0.1.8 #

  • Add schema_path and output_path builder options in build.yaml:
    • schema_path: specify a custom schema file path (relative to package root)
    • output_path: specify a custom output directory (trailing /) or file path
    • Both options are optional; default behavior is unchanged.

0.1.7 #

  • Add build_runner support: .graphql and .gql files are now automatically compiled to Dart when running dart run build_runner build.
  • Add ApiGenerator.fromContent(String content) constructor for in-memory schema input.
  • Add build.yaml builder registration with auto_apply: dependents.
  • Add build package as a dependency.

0.1.6 #

  • Fixed issue where non-nullable list return types would crash with TypeError when executor returns null.
    • Changed as List cast to as List? to safely handle null transport errors.
    • Added ?? [] fallback for non-nullable lists to satisfy schema contract.
    • Added static test coverage for [Item!]! return type.

0.1.5 #

  • Improve README with practical installation, usage, and generation workflow docs.
  • Upgrade tokenizer_parser dependency to ^0.1.2.
  • Add API documentation comments and clean analyzer issues.
  • Add tests for utility helpers and schema file reader behavior.

0.1.4 #

  • Bump dependecy versions

0.1.3 #

  • Implemented feature #3, Make parameters of a query/mutation/subscription named parameters instead of positional parameters.

0.1.2 #

  • implemented feature #1, dart run ql_gen creates folder structure.
  • Fixed issue #2, Cast error when having returning List.

0.1.1 #

  • Fixed missing ! in List type.
  • Documentation improvements.

0.1.0 #

  • Initial version.
2
likes
150
points
271
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Generate strongly typed Dart GraphQL client helpers from schema files, including models, selectors, and operation builders for queries and mutations.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, build, path, tokenizer_parser

More

Packages that depend on ql_gen