Skip to content

v2.7.0

Compare
Choose a tag to compare
@ghostdogpr ghostdogpr released this 29 May 12:29
· 221 commits to series/2.x since this release
b81453b

Release Notes

This release contains several new features as well as a few performance improvements.

Schema transformations

You can now transform types, fields or arguments of an existing GraphQL object. This gives you an easy alternative to modifying schemas. You can also implement your own custom transformers.

api
  .transform(Transformer.RenameType("InnerObject" -> "Renamed"))
  .transform(Transformer.ExcludeField("Query" -> "myField"))

Scala 3 union type derivation

You can now derive schemas from Scala 3 union types, and they will be translated to GraphQL unions:

type Payload = Foo | Bar
given Schema[Any, Payload] = Schema.unionType[Payload] // in GraphQL => union Payload = Foo | Bar

New features

Performance improvements

Important dependency upgrades