Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example Apollo Federation with Apollo Gateway

See original GitHub issue

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

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.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

10thfloorcommented, 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 😦

jopo11commented, 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found