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

Example Apollo Federation with Apollo Gateway #12

Open
g3rd opened this issue Aug 21, 2019 · 8 comments
Open

Example Apollo Federation with Apollo Gateway #12

g3rd opened this issue Aug 21, 2019 · 8 comments

Comments

@g3rd
Copy link

g3rd commented Aug 21, 2019

I 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:

  1. ApolloGateway worker on my base domain
  2. External GraphQL API
  3. Standard GraphQL worker pointing to a REST API
  4. 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.

@kristianfreeman
Copy link
Contributor

hey @g3rd! sounds interesting, i've seen gateway mentioned in the docs but haven't played around with it myself. from my basic understanding, you should just be able to point apollo at your GraphQL route - does that not work? if you want to put together a test repo, i'd love to try and help get it working :)

@g3rd
Copy link
Author

g3rd commented Aug 21, 2019

Awesome. Working on it now. 🤞

@g3rd
Copy link
Author

g3rd commented Aug 21, 2019

@jopo11
Copy link

jopo11 commented Aug 8, 2020

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

@10thfloor
Copy link

10thfloor commented May 25, 2021

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 :(

@nickisyourfan
Copy link

Second the Bump! Would love to know if anyone has had success since?

@ktheory
Copy link

ktheory commented Aug 18, 2022

Related issue on the Apollo side: apollographql/federation#1918

@damianesteban
Copy link

Is it possible to run Apollo Gateway on AWS (for example) and use cloudflare workers for the federated services?

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

No branches or pull requests

7 participants