Skip to content

Apollo Federation v2.8, v2.9 and v2.10 support #8238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dariuszkuc opened this issue Apr 9, 2025 · 1 comment
Open

Apollo Federation v2.8, v2.9 and v2.10 support #8238

dariuszkuc opened this issue Apr 9, 2025 · 1 comment

Comments

@dariuszkuc
Copy link
Contributor

Product

Hot Chocolate

Is your feature request related to a problem?

HotChocolate currently provides support for Apollo Federation up to version 2.7. It would be great the library could be updated with additional support for Federation v2.8 and v2.9.

Changelog

  • Federation v2.8 added support for sharing contextual data between different subgraphs (with ancestor <-> descendant) relationship (docs)
  • Federation v2.9 added support for demand control based on the IBM Cost spec (docs)
  • Federation v2.10 is all about connectors so there is actually nothing to implement here from the subgraph perspective (its just bumping the fed spec version in the @link import)

NOTEs:

  • Apollo Federation v2.9 @cost directive definition diverges from the IBM Cost spec as instead of supporting arbitrary cost formula, it requires Int value.

The solution you'd like

Built-in support for latest Apollo Federation versions.

@michaelstaib
Copy link
Member

michaelstaib commented Apr 10, 2025

I have put it on the backlog for 15.2.

Regarding cost, in Hot Chocolate we have opted for the same restriction. We however added one more thing to the listSize directive which might be a problem. The spec allows for adding additional attributes though. In essence we have added the default list size for when no slicing argument is provided as many users complained about the assumption of a maximum cost in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants