Releases: kobylynskyi/graphql-java-codegen
Releases · kobylynskyi/graphql-java-codegen
2.2.0
- Union query requests in client code with conditional fragments #164 #222 by @kobylynskyi
Note: If you are migrating from version 1.x.x, please follow Migration Guide
2.1.0
- Introduce new configs:
typeResolverPrefix
,typeResolverSuffix
,generateModelsForRootTypes
#176 #206 #207 by @kobylynskyi - Generated types should be annotated with
@Generated
#178 #219 by @kobylynskyi - Bump
jackson-databind
from 2.11.0 to 2.11.1 #218 by @dependabot - Remove
lombok
dependency from the core library by @kobylynskyi
Note: If you are migrating from version 1.x.x, please follow Migration Guide
2.0.0
New features
- Introduce apiNamePrefix and apiNameSuffix config options #136 #166 by @kobylynskyi
- Auto-generate generic class prefixes for Query / Mutation based on schema hierarchy #142 #171 by @kobylynskyi
- Model classes should implement java.io.Serializable #167 #168 by @kobylynskyi
- Field aliases support for client generator #173 #174 by @lmartellotto
- Add generation of immutable models #149 #175 by @lorenzleutgeb
Bug-fixes
- Use java.util.List for GQL lists #185 #186 by @lorenzleutgeb
- Fix a case when List NonNullType has a default value #177 #179 by @kobylynskyi
Migration guide
Breaking changes
This release has the following breaking changes:
- All generated api classes will now have
Resolver
suffix by default (e.g.:Query.java
=>QueryResolver.java
,CreatePersonMutation.java
=>CreatePersonMutationResolver.java
) - All generated classes will now have
java.util.List
for GraphQL lists (instead ofjava.util.Collection
) #185 #186 - Remove deprecated methods #169 #170
GraphQLCodegenGradleTask.generateRequests
replaced byGraphQLCodegenGradleTask.generateClient
GraphQLCodegenMojo.generateRequests
replaced byGraphQLCodegenMojo.generateClient
GraphQLRequest.toString
replaced byGraphQLRequest.toHttpJsonBody
orGraphQLRequest.toQueryString
GraphQLRequestSerializer.serialize
replaced byGraphQLRequestSerializer.toHttpJsonBody
orGraphQLRequestSerializer.toQueryString
- Bumped version of graphql-java version from 14.0 to 15.0
1.8.1
- Generate Response class having response data with the exact type #159 (#161) by @kobylynskyi
- Allow extensions-only schema #160 (#162) by @kobylynskyi
1.8.0
- Add support of HTTP Query request serialization #154 by @lmartellotto
- Support of parametrized fields in ResponseProjection #153 by @kobylynskyi
- MapStruct support: Add builder Method enhancement #148 by @lorenzleutgeb
- Option to have the query and mutation classes extend another interface #135 by @kobylynskyi
- Support for enum in unions #152 by @danilo-barboza
1.7.4
- Use an upper-bounded wildcard for interface methods returning list #145 #147 by @kobylynskyi
1.7.3
- Fix request serialization for collections #138 by @kobylynskyi
1.7.2
- Fix enum default value generation when suffix provided #131 by @kobylynskyi
1.7.1
- Handle duplicate fields from the type and interface #128 by @kobylynskyi
1.7.0
- Add support for extensions for all GraphQL types:
extend type
,extend interface
,extend enum
,extend input
,extend union
#83 #81 by @kobylynskyi - Fix and refactor imports in generated classes #103 #101 by @kobylynskyi
- Fix Gradle build (sometimes it did not pickup changes in schema files) #83 by @joffrey-bion
- Improve performance of codegen #86 by @kobylynskyi
- Add JavaDoc in generated classes matching comments in GraphQL schema #84 by @kobylynskyi
- Support
@deprecated
directive #85 by @kobylynskyi - Support code generation if there are multiple queries with the same name #106 by @kobylynskyi
- Update dependencies, fix gradle configuration #112 by @kobylynskyi
- Update graphql-java from 13.0 to 14.0
- Update Gradle plugin dependencies according to Gradle 6.3 guidelines.
- Support default SchemaFinder config for both
.graphql
and.graphqls
files #97 by @kobylynskyi - Generate Builder for Request classes #67 by @kobylynskyi
- and other minor fixes and improvements