graphql_generator2 8.0.0
graphql_generator2: ^8.0.0 copied to clipboard
Generates GraphQL schemas from Dart classes, for use with pkg:graphql_server2.
Change Log #
8.0.0 #
Breaking changes in 8.0.0 #
- Breaking: Requires
angel3_modelandangel3_serialize_generator10.0.0, andgraphql_schema28.0.0. - Breaking: The
idfield of aModelis generated asgraphQLIdinstead ofgraphQLString. - Breaking: Computed getters inherited from a parent class, such as
Model.idAsIntandidAsString, are no longer generated as fields. - Breaking:
@GraphQLDocumentationand@Deprecatedon a field declared as a field (not as a getter) are applied, so its description, deprecation reason andtypeNamenow appear in the generated type. - Breaking: Each generated field has a
resolvecallback that reads it from a model object, so a resolver can return a model instead of aMap; aMapis still read by key, as before. Fields are generated asfield<dynamic, dynamic>(...), as a getter's value may benullor a model object, and a generated type no longer uses the server'sdefaultFieldResolver. A parent value that is neither aMapnor an instance of the class is a GraphQL error naming the field; anullone resolves tonull. - Breaking: Static and private fields, and fields the serializer excludes (
@SerializableField(exclude: true)or@exclude, unlesscanSerialize), are not generated, where they were, so an excluded field such as a password hash is no longer part of the schema; this coversfinalfields too.
New in 8.0.0 #
- The generator no longer imports
dart:mirrors;typeNamesymbols are read through the analyzer.
Fixes in 8.0.0 #
- Types: A reference to another generated type is named after the class the serializer generates, so a field of type
TodoEntityrefers totodoGraphQLType, as_Todoalready did. - Types: A nullable field of a generated class or enum type, such as
CompletionStatus?, generates valid code instead ofcompletionStatus?GraphQLType. - Deprecation: The
@Deprecatedmessage is used as the deprecation reason instead of "Expires: next release.". - Names: A
$in the name of a class, field or enum value, or in a doc comment or deprecation message, is escaped in the generated code, which did not compile.
7.0.0 #
- Require Dart >= 3.13
- Updated
analyzerto14.0.0 - Updated
angel3_modelto9.0.0 - Updated
angel3_serialize_generatorto9.0.0 - Updated
graphql_schema2to7.0.0
6.5.0 #
- Require Dart >= 3.9
- Updated
analyzerto 8.4.x - Updated
buildto 4.0.x - Updated
source_gento 4.0.x
6.4.1 #
- Fix analyzer warnings
6.4.0 #
- Require Dart >= 3.8
- Updated
lintsto 6.0.0 - Updated dependencies to the latest release
- Updated
analyzerto 7.7.x
6.3.1 #
- Fixed
angel3_serialize_generatorimport issue
6.3.0 #
- Require Dart >= 3.6
- Updated
lintsto 5.0.0 - Upgraded to
analyzer7.0.0
6.2.1 #
- Upgraded to
analyzer6.5.x
6.2.0 #
- Require Dart >= 3.3
- Updated
lintsto 4.0.0
6.1.0 #
- Upgraded to
analyzer6.3.x - Updated
lintsto 3.0.0 - Fixed linter warnings
- Updated repository link
6.0.0 #
- Require dart >= 3.0.x
5.1.0 #
- Require dart >= 2.18.x
- Upgraded to
analyzer5.x.x - Replaced deprecated
element2withelement
5.0.0 #
- Require dart >= 2.17.x
4.1.0 #
- Updated to
analyzer4.x.x
4.0.0 #
- Require dart >= 2.16.x
- Updated
angel3_modelto 6.x.x - Updated
angel3_serialize_generatorto 6.x.x
3.0.0 #
- Updated to min SDK 2.15.x
2.2.0 #
- Upgraded from
pendantictolintslinter
2.1.1 #
- Updated
build.xmlto use the correct packages
2.1.0 #
- Updated
build.xmlto useangel3packages - Upgraded to support major
analyzer2.0.0 release
2.0.0 #
- Migrated to support Dart SDK 2.12.x NNBD
- Rename
graphql_generatortographql_generator2
1.0.0+1 #
- Replace
snakeCasewithcamelCase.
1.0.0 #
- Apply
package:pedantic.
1.0.0-rc.1 #
- Add
CHANGELOG.md,example/main.dart. - Add documentation to
README.md.