Skip to content

Releases: Netflix/dgs-codegen

v5.7.0

02 Mar 00:16
c7c8333
Compare
Choose a tag to compare

What’s Changed

This release introduces a new experimental API for generating client API. It can be turned on using generateClientv2 config option and is opt-in. The original generateClient v2 implementation is still the default.

The v2 implementation solves 1) Not being able to handle cycles in the schema, and 2) Not being able to generate on larger schemas due to too many classes getting generated, and out of memory errors We only generate one class per type in the new implementation.

Finally, the projection root needs to be instantiated differently, and hence this is a v2 API. Eventually, this will be the default implementation and a breaking release in the future.

Older API:

String query = new GraphQLQueryRequest(
                new MoviesGraphQLQuery(),
                new MoviesProjectionRoot().movieId()).serialize();

New API:

String query = new GraphQLQueryRequest(
                new MoviesGraphQLQuery(),
                new MoviesProjectionRoot<>().movieId()).serialize();

Note the difference in the use of generics in the MoviesProjectionRoot

Other changes and PRs:

v5.6.9

26 Jan 23:05
4cd0b11
Compare
Choose a tag to compare

What’s Changed

v5.6.8

26 Jan 22:22
4cd0b11
Compare
Choose a tag to compare

What’s Changed

v5.6.7

23 Jan 17:56
c2f7376
Compare
Choose a tag to compare

What’s Changed

v5.6.6

19 Jan 04:31
f2c2522
Compare
Choose a tag to compare

What’s Changed

v5.6.5

09 Jan 19:06
973398a
Compare
Choose a tag to compare

What’s Changed

v5.6.4

09 Jan 17:50
0cb9071
Compare
Choose a tag to compare

What’s Changed

  • Initialize GraphQLQuery#name from generated subclasses (#497) @jdmcmahan
  • Fix keyword sanitization in Java query class constructor generation (#495) @ajkerr

v5.6.3

21 Nov 17:07
580cf0d
Compare
Choose a tag to compare

What’s Changed

v5.6.2

10 Nov 18:50
49c68bc
Compare
Choose a tag to compare

What’s Changed

  • IIEA-10827 Add support for class objects as inputs (#483) @lillianlouie
  • Upgrade to Gradle 7.5.1 and migrate to modern nebula plugin ids (#484) @rpalcolea

v5.6.0

31 Oct 17:00
0c764b1
Compare
Choose a tag to compare

What’s Changed