Skip to content

Changes in 5.1.0

Compare
Choose a tag to compare
@looseale looseale released this 20 Sep 15:32
· 1136 commits to master since this release
9faa683

Released Sep 20, 2022.

JS asset

JVM asset

Announcing GraphQL and Apollo Federation support

We're happy to announce that AMF now supports GraphQL APIs and Apollo Federation APIs for all its operations (parsing, transformation, validation, rendering).

We've worked hard to integrate all GraphQL features into our model, up to the October 2021 GraphQL Spec.

How to use GraphQL in AMF

To use these new features you only need to:

  • create a new GraphQLConfiguration.GraphQL()
  • create a client graphqlConfig.baseUnitClient()
  • use this client to parse, transform, validate and render GraphQL APIs

There are multiple examples of GraphQL parsing in Scala, Java, and TypeScript in the GraphQL Parsing section of the AMF Documentation.

Apollo Federation

We've also added support for GraphQL APIs compliant with the Apollo Federation v2 Spec.

These APIs require a different configuration called GraphQLFederationConfiguration.GraphQLFederation() to differentiate them from plain GraphQL APIs.

We've detailed exactly what is supported and how it works in the GraphQL Federation section of the AMF Documentation.

Resources

Specification Configuration More information
GraphQL GraphQLConfiguration GraphQL Parsing
Apollo Federation GraphQLFederationConfiguration GraphQL Federation

What's Changed

Full Changelog: 5.0.12...5.1.0