-
Notifications
You must be signed in to change notification settings - Fork 574
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
Use GraphQL Tools for Federation GW #3054
Conversation
|
✅ Benchmark Results
|
💻 Website PreviewThe latest changes are available as preview in: https://f3daeefc.graphql-yoga.pages.dev |
🚀 Snapshot Release (
|
Package | Version | Info |
---|---|---|
graphql-yoga-cloud-run-guide |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/apollo-link |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/urql-exchange |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/redis-event-target |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
graphql-yoga |
4.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/nestjs |
2.2.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/nestjs-federation |
2.3.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-apollo-inline-trace |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-apq |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-csrf-prevention |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-defer-stream |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-disable-introspection |
1.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-graphql-sse |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-jwt |
1.2.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-persisted-operations |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-prometheus |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-response-cache |
2.3.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-sofa |
2.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/render-graphiql |
4.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/subscription |
4.1.0-rc-20231013120111-e76e0697 |
npm ↗︎ unpkg ↗︎ |
Apollo Federation Subgraph Compatibility Results
Learn more: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this file generated? Can you add some script in package.json that explains.
For instance, if today we are doing const supergraphSdl = new IntrospectAndCompose(options)
from @apollo/gateway'
how do we do that with @graphql-tools/federation
. Can it be done programatically or has to be run as a script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a script that uses our composition package; https://github.com/the-guild-org/federation
But you can keep using @apollo/gateway
or Rover CLI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest keeping the example in the docs as using @apollo/gateway
and/or providing two examples, one using it and one relying on composition script/typeDefs like you have now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also wonder how one would use getStitchedSchemaFromSupergraphSdl
with Apollo Gateway's pollIntervalInMs
. Is that still possible without the envelope plugin?
Right now current docs use GraphQL Tools. |
Fixes #3015