retrofit_graphql 3.1.0
retrofit_graphql: ^3.1.0 copied to clipboard
retrofit_graphql or Retrofit GraphQL for Dart is a powerful code generation tool that simplifies working with GraphQL in Dart projects.
1.0.0+1 - 2023-08-14 #
- Initial Release.
1.1.0 - 2023-09-19 #
- All generated data classes have
explicitToJson: true
1.1.1 - 2023-10-19 #
- Updates readme file
2.0.0 - 2024-06-03 #
- Adds
_all_fieldsto target all fields (without class name) - Detects cycles in depencies when generating
all fields fragements - You can use the package as a dev depency instead of a dependecy
- Generates more meaningful class names when a all fields projection is used in queries/mutations.
2.0.1 - 2024-06-04 #
- Fixes
_all_fieldsto target all fields (without class name)
2.0.2 - 2024-06-04 #
- Fixes generated code when
_all_fieldsis used.
2.0.3 - 2024-06-11 #
- Optimizes code generation.
- Generates code much faster.
2.1.0 - 2025-05-14 #
- Generate constructor without
requiredfor nullable argumentsNote: #
if you need to keep generating required nullable fields you need to passnullableFieldsRequired: trueon your build.yaml
2.1.1 - 2025-05-14 #
- Updates project dependcy versions
2.1.2 - 2025-05-14 #
- Adds project links on generated files
2.1.3 - 2025-05-14 #
- Fixes transitive frament reference
2.2.0 - 2025-05-15 #
- Generates declares queries mutations and subscriptions without declaration
You need to pass `autoGenerateQueries: true` on your build.yaml to enable this option
You can also pass `autoGenerateQueriesDefaultAlias` as an alias to be used for queries, mutations and subscriptions.
3.0.0 - 2025-05-21 #
- Generates code for unions
- Generates == and hashcode method using either:
1. @gqEqualsHashcode(fields: ["field1", "field2"])
2. on build.yaml
identityFields: ["field1", "field2"]
Note: In case of Unions and Interfaces, the Retrofit Graphql generates empty interfaces instead of base classes.
3.0.1 - 2025-05-21 #
- Fixed some minor bugs
3.1.0 - 2025-05-21 #
- Generates all implemented interfaces