Example Apollo Federation with Apollo Gateway
See original GitHub issueI am working on setting up ApolloGateway, but can’t seem to figure out how to plug it into the workers-graphql-server.
Has anyone done something similar?
Following: https://github.com/apollographql/federation-demo Reference: https://www.apollographql.com/docs/apollo-server/federation/introduction/
My long term goal is:
- ApolloGateway worker on my base domain
- External GraphQL API
- Standard GraphQL worker pointing to a REST API
- Standard GraphQL worker pointing to Neo4j GraphQL
I am currently working on No. 1 connecting to No. 2. I have a somewhat working No. 4 locally, haven’t refactored it into a worker yet.
Any advice, examples, or words of encouragement is greatly appreciated!
PS - I’m willing to create a workers-graphql-gateway-server
template to work alongside this project.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Introduction to Apollo Federation - Apollo GraphQL Docs
A graph router (also known as a gateway) serves as the public access point for your supergraph. It receives incoming GraphQL operations and...
Read more >Federation 2 quickstart - Apollo GraphQL Docs
Our in-depth Apollo Federation course goes into greater detail on fundamental federation concepts. It walks through creating a supergraph from scratch, along ...
Read more >Using Apollo Federation with Local Schemas
A basic Federation example Let's supposed that we have one Apollo federation that's consuming one service for the time being. const gateway = ......
Read more >Introduction to Apollo Federation - Apollo GraphQL Docs
@apollo/gateway enables you to set up an instance of Apollo Server as a gateway that distributes incoming GraphQL operations across one or more...
Read more >API Reference: @apollo/gateway - Apollo GraphQL Docs
This API reference documents the exports from the @apollo/gateway package. This package enables you to use Apollo Server as a gateway for a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Bump? Does anyone know if this is workable at the moment? As far as I can tell,
@apollo/gateway
can’t be bundled into a webworker 😦Did you have any luck with this? I tried with a worker and noticed Apollo gateway was throwing errors as it looks like it was reliant on Node