Questions tagged [apollo-gateway]
41 questions
1
vote
0 answers
Apollo - How to add a dynamic header for subgraph
I am using the @apollo/gateway for a GraphQL implementation.
When implementing a subgraph, the endpoint is an internal DNS record. I have a total of 3 microservices, see below for the code snippet:
const { ApolloGateway, IntrospectAndCompose,…

Sean
- 1,151
- 3
- 15
- 37
1
vote
1 answer
Apollo Federation Gateway: include local schemas when composing supergraph
When composing a supergraph for Apollo Federation's gateway, you would create a .yaml config file with the routing urls to the subgraphs.
Ex:…

Jsbbvk
- 180
- 2
- 19
1
vote
1 answer
Mutation between two microservices on Apollo Federation
I'm using Apollo Federation to handle a lot of GraphQL microservices. I want to create a Notificaction when a user was followed so I need to send a mutation from UserService to NotificationService. How can I achieve this?
Thank you in advance!

Julián Gómez Sibecas
- 355
- 1
- 2
- 8
1
vote
1 answer
How to have timing and retry policy when Apollo gateway is failing?
The Apollo Gateway module requires a list of GraphQL servers to connect to. If any of these services miss responding with a success code to the Apollo Gateway, the whole Gateway will exit with a failed status.
There should be a retry policy for when…

Daniel_FA
- 59
- 6
1
vote
1 answer
Start gateway with Key to validate config then use Bearer token for querying
I have an eco system that the gateway and federated services live. The problem is when the gateway starts it validates the services - to do this it needs to be authorised.
When a client is querying via federation gateway they supply a bearer…

user3067684
- 936
- 9
- 18
1
vote
1 answer
Resolver Issue for @extends Type in GraphQL Apollo Federation-JVM
I am quite new to Apollo Federation and Gateway and trying to use apollo federation-jvm for a demo project. I have created two federated services using federation jvm. Both these services are connected to each other via Apollo Gateway. Using this…

Siddhesh
- 13
- 7
0
votes
0 answers
Applying @nestjs/passport to GraphQLModule ApolloGatewayDriver
How does @nestjs/passport attach authentication to a gateway GraphQL module? Assuming my application looks like this:
// ./app.module.ts
@Module({
providers: [JwtAuthGuard],
imports: [
AuthModule,
…

bashaus
- 1,614
- 1
- 17
- 33
0
votes
0 answers
File Upload on apollo gateway
I have two graphql subgraphs server a and server b. Each running fastify and mercurius and using grapqql-upload to handle files. I also have an apollo gateway connected to both servers and working well for queries and mutations. However when using…

Cyrille keith
- 21
- 3
0
votes
0 answers
How to mock only some mutaions in the apollo gateway?
I have an apollo-gateway service that I initialize using a composed schema. How can I override only some mutations and queries in this gateway service? So it will use underlying services for all queries and mutations except for some specific queries…

Omid Ebrahimi
- 1,150
- 2
- 20
- 38
0
votes
0 answers
Which graphQL Gateway should use to access multiple String boot graphQL microservices with single URL?
I have the below spring boot graphql microservices in java
/graphql1 - with User service
/graphql2 - with Product service
All these 2 microservice run on different ports.
I would like to host these 2 microservices through one single graphql api…

Khyati
- 13
- 4
0
votes
0 answers
Enable GraphQL subscriptions on Apollo Gateway server
I have a nestjs GraphQL Federation microservices app that uses federation gateway. here's the code for the gateway module;
import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
import { ApolloGatewayDriver,…

saafgh
- 33
- 8
0
votes
0 answers
How do I apply a graphql-middleware to my Apollo Federation?
I don’t use the managed Apollo federation instead I have a solution which looks like this:
const server = new ApolloServer({
gateway: new ApolloGateway({
supergraphSdl: new IntrospectAndCompose({
subgraphs: [
// ...
…

Mike
- 613
- 1
- 10
- 20
0
votes
0 answers
A valid schema couldn't be composed. The following composition errors were found in @apollo/gateway
I am using below latest versions & migrating to @apollo/server v4
"@apollo/gateway": "2.4.8",
"@apollo/server": "4.7.4",
"graphql": "16.6.0",
"type-graphql": "1.1.1",
Rest other errors solved but now getting the below error, do anyone…

Kiran Devkar
- 1
- 1
- 1
- 4
0
votes
1 answer
Set-cookie headers are not being sent when calls are made through apollo federation gateway NestJs
I have a non monorepo nestJs graphql microservices app, and opted for Apollo federation gateway. I have an authentication server which works fine and sets cookies to header, only problem is when calls are made through apollo gateway set-cookie…

saafgh
- 33
- 8
0
votes
0 answers
How to move from schema stitching to federated subgraphs after upgrade of many libraries?
I need to move from schema stiching to federated subgraphs using graphql-compose, graphq-compose-mongoose, apollo-subgraph apollo-server after an upgrade of all the libraries
I have a gateway using apollo gateway that create a supergraphSDl using…

Anthony Levillon
- 11
- 3