ChilliCream / ChilliCream/graphql-platform

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

Open
#8,238 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🌶️ hot chocolate Area: Apollo Federation
Dominant language
C#
Stars
5.8k
Forks
810
Avg merge
15h 39m
Merged PRs (30d)
98

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/HotChocolate/ApolloFederation/src/ApolloFederation/FederationVersion.cs, which currently defines support through Federation 2.7, then read the linked Apollo Federation documentation for the 2.8 and 2.9 directives and the 2.10 version change. Done means built-in support is updated for Federation 2.8, 2.9, and 2.10, including the noted @cost behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, graphql
Domain
api, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.