-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 not working #12884
Comments
It seems that this PR #6146 from v3 does not exist in v4. Does anyone know the reason for that? |
@Convly I'm honestly not sure here, can you share any information. I only see that we have the apollo federation package installed but it's not referenced anywhere in the code-base:
I assume we plan to add federation support at some point in the future but I don't believe it's been built in yet, just like subscriptions. We were only preparing for it. @mengqing in v4 we completely rewrote the entire graphql plugin from the ground up so we didn't get the chance to rebuild all of the v3 features. Time constraints |
@derrickmehaffy It's exactly that. We plan to add it when we'll have enough bandwidth, but we had to make compromises to release the V4 GQL plugin. Both federation & aggregates queries have been cut out of the release but will be implemented sooner or later. |
Cool, that's what I thought. Thanks for the clarification JS 🙏 |
@derrickmehaffy @Convly Thanks for clearing this up for me. For now, I had to use a third-party plugin to transform the schema into a federated specification. |
Hey all, we are currently moving many feature requests to our new feedback and feature request website to help clean up the GitHub issues and make it easier for us to review bug reports and fix them. I have moved this feature to the following URL: https://feedback.strapi.io/developer-experience/p/add-graphql-federation-v4 For now I will close this and lock it so that all new information goes into our new feedback website. |
Hi @mengqing, may I know which plugin you used to add federation and how to integrate it with strapi? Thanks! |
@kentnek I use graphql-transform-federation to transform the strapi schema into a federated spec |
Hi @mengqing, I also found that transform plugin but I'm not sure how to add that to my existing Strapi instance. Do you add it as a Strapi extension? Any code example would be greatly appreciated! |
I basically followed this blog to achieve what I needed |
@mengqing Thank you for the link. I tried to use it in my project but got this error while running:
It looks like the transform plugin needs GraphQL 15 and below:
My project is using GraphQL 16.5.0. May I ask if you encounter the same issue? |
I met the exact same issue. I tried troubleshooting the problem using |
Bug report
Describe the bug
After enabling federation option, Federation service definition is not being generated
Expected behavior
It should return the federation service definition
Screenshots
If applicable, add screenshots to help explain your problem.
Code snippets
System
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: