The latest version of strawberry supports federation v2.7 and hardcodes the directive urls as such: #3420
The apollo federation version at my company is v2.5 so I've updated our schema generator to manually replace v2.7
with v2.5
It would be nice to be able to set this at the schema level, e.g.
federation.Schema(query=Query, federation_version="v2.5")
At first glance it seems relatively straightforward:
federation_version
argument to the schema, default to "v2.7"
if enable_federation_2=True
enable_federation_2=True
if federation_version >= 2But I imagine that the versioning actually changes underlying support, so then there are outstanding questions:
print_schema
function with version instead?Not sure what the approach should be, but I don't think this library should dictate the federation version, and more explicitly, I think that users of this library should be able to get library updates unrelated to federation version, rather than having to pin to the version before some federation version was explicitly supported / mandated.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too