Skip to content
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

Apollo Federation v2 schema composition #712

Closed
Tracked by #3858
jereckley opened this issue Nov 29, 2022 · 5 comments · Fixed by #2822
Closed
Tracked by #3858

Apollo Federation v2 schema composition #712

jereckley opened this issue Nov 29, 2022 · 5 comments · Fixed by #2822
Assignees

Comments

@jereckley
Copy link

Version 2 of gateway has some cool changes but it doesn't seem to be supported in Hive.

Example: Extending types is not required -> https://www.apollographql.com/docs/federation/federation-2/new-in-federation-2#originating-subgraphs but in hive composition fails if type is not extended.

I'd love some feedback, maybe i'm missing something or is this planned work (ETA?). Thanks!

@jereckley
Copy link
Author

It looks like this is already in the works -> #702 .

@kamilkisiela
Copy link
Owner

Federation V2 is available only when using https://docs.graphql-hive.com/features/external-schema-composition.
We plan to support it natively at some point.

@jereckley
Copy link
Author

jereckley commented Nov 29, 2022

Thank you @kamilkisiela for the feedback . If we needed to use V2 in 6 months would you suggest we work towards implementing our own external composition or just waiting?

@dotansimha dotansimha changed the title V2 schema composition Apollo Federation v2 schema composition Dec 12, 2022
@dotansimha
Copy link
Collaborator

dotansimha commented Dec 12, 2022

Thank you @kamilkisiela for the feedback . If we needed to use V2 in 6 months would you suggest we work towards implementing our own external composition or just waiting?

At the moment we recommend to use the external composition. You can deploy very easily and quickly as Docker image, or as CloudFlare Worker.
You can find the documentation here: https://docs.graphql-hive.com/features/external-schema-composition#apollo-federation-v2-example
I think @n1ru4l also wanted to create a simple Docker image for it? @n1ru4l recently created a Docker image for it, so you can use it easily: https://github.com/kamilkisiela/graphql-hive/pkgs/container/graphql-hive%2Fcomposition-federation-2

@n1ru4l
Copy link
Collaborator

n1ru4l commented Dec 16, 2022

My plan is to also record a video on how to set up the federation 2 composition service with an existing Hive instance next week.

@kamilkisiela kamilkisiela self-assigned this Mar 6, 2023
kamilkisiela added a commit that referenced this issue Sep 28, 2023
Closes #712
Closes #1330

Want to opt-in? Create a support ticket.
@theguild-bot theguild-bot mentioned this issue Jan 24, 2024
92 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants