Skip to content

How to generate federation v2 compatible schemas via gradle in 6.x ? #1644

Answered by dariuszkuc
roookeee asked this question in General
Discussion options

You must be logged in to vote

Hello 👋

Federation v2 is supported with an opt-in mechanism in graphql-kotlin v6 (note: we will be releasing v6.3.5 that contains a fed bug fix soon) and it defaults to v1 if flag is not specified.

Plugins rely on a service loader mechanism to generate SDL based on the provided hooks (defaults to non-federated schema). Service loader mechanism is pretty flexible as it allows us to dynamically load hooks at runtime based on the available classpath. On the other hand it is also non-configurable as we cannot pass arguments in some generic fashion (as we don't know what will be loaded) - that's why don't have a plugin configuration option to distinguish between v1 and v2 and we use the same d…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@samuelAndalon
Comment options

Answer selected by dariuszkuc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1642 on January 17, 2023 17:20.