Apollo Federation is an architecture for composing multiple GraphQL services into a single graph that addresses this need. Unlike other approaches such as schema stitching, it is based on a declarative composition programming model that allows proper separation of concerns. This design allows teams to implement an enterprise-scale shared data graph as a set of loosely coupled, separately maintained GraphQL services.
Questions tagged [apollo-federation]
208 questions
1
vote
0 answers
Can Existing Public Facing Graphql Service coexist with Graphql Federation
I am currently having a non federated graphql service which is consumed by certain clients, now there is a new requirement where I need to convert my existing non federated graphql service to federated. So my question is can I have two intstance of…

Karthik Gowda
- 11
- 1
1
vote
0 answers
Rename Apollo Federation's OpenTelemetry traces based on operation name (named queries)
I have a federated Apollo Graph (using ApolloGateway) and a bunch of subgraph microservices. I’ve set them up to do distributed tracing via OpenTelemetry.
Now, they do produce a bunch of traces that I can see in my backend (Elastic APM). However,…

BehzadV
- 167
- 3
- 10
1
vote
0 answers
Is there a reason why I'm getting "Cannot POST /api/graphql" Apollo Federation when using apollo-server-express?
I'm relatively new to Apollo Federation and have been trying to get cookie-session to work for my authentication. My auth service works fine with apollo-server-express
// auth/src/index.ts
import 'reflect-metadata'
import { ApolloServer } from…

BerryDevDev
- 97
- 1
- 6
1
vote
1 answer
cant extend graphql types in subgraph
I am using apollo federation and typescript to create subgraphs and a graphql federated server. I defined a type in one subgraph and I want to extend it and add a field to it in another subgraph. So in typedefs I use the syntax.
extend type MyType…

Nane Petrosyan
- 553
- 1
- 7
- 19
1
vote
0 answers
GraphQL Federation: Is it possible to have multiple service contribute to a list/array result?
Assuming I have the following GraphQL schema defined:
type Widgets {
id: ID!
name: String!
}
type Basket {
id: ID!
widgets: [Widgets]!
}
And that I have a widget service that provides those results.
But now I have a new service "NEW…

chadgh
- 9,063
- 8
- 38
- 54
1
vote
0 answers
Hotchocolate graphql not running as subgraph under Apollo Federation
I'm trying to add a hotchocolate 12 subgraph to my existing Apollo federation using .net 5.0. Unfortunately receiving
(node:27900) UnhandledPromiseRejectionWarning: Error: Couldn't load service definitions for "supplier" at…

killjoy
- 864
- 17
- 31
1
vote
2 answers
Route GraphQL requests to APIs in different regions serving different content but using same schema
We deploy backend services with GraphQL API in multiple AWS regions. The GraphQL schema is the same for each region, but the services serve region specific data. Apollo federation does not seem to address this topic, because we do not want to merge…

Marian
- 351
- 2
- 12
1
vote
1 answer
How can I add 2 buildService (upload and header) to apollo federation?
Is there any option to add both header and upload to buildService in apollo federation?
I want my headers for authentication and upload for uploading file. buildService does not support return object.
const gateway = new ApolloGateway({
…

Mj Ebrahimzadeh
- 587
- 9
- 22
1
vote
0 answers
apollo federation typescript resolver arguments
Hello i have a question related to apollo federation, ive been using apollo server to experiment with graphql and typescript i had everything working but i wanted to move to apollo federation, i had to change the schema building method to…

Italo Carrasco
- 11
- 2
1
vote
0 answers
Graphql Federation: JS Testing Framwork
I am looking for JS testing framework or some solution to test GraphQL Federation implimentation.
My Current Implementation is in Apollo Server, Gateway, and subgraph.
I want to test federated queries, where multiple subgraphs are involved. is there…

hardo91
- 11
- 2
1
vote
0 answers
Caliban federation with scala 3
There is no caliban.federation for scala 3 yet.
My question is what is a correct way to use it along with scala 3 libraries?
For now I have such a dependencies in my build.sbt:
lazy val `bookings` =
project
.in(file("."))
.settings(
…

Roman Leshchenko
- 23
- 4
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
Is there a way to add a cache between Apollo Gateway and federated services?
I am using Apollo Federation and I have a question regarding caching.
Right now I have a query like this where'd I'd like to get the author of a post:
query GetPost {
post(id: "123") {
id
author {
id
name
}
}
}
Post is…

Kloar
- 1,109
- 2
- 9
- 25
1
vote
1 answer
Child service data access to other services with Apollo Federation configuration
We've been using Apollo Federation for about 1.5 years as our main api. Behind the federation gateway are 6 child graphql services which are all combined at the gateway. This configuration really works excellent when you have a result set of data…

Brettski
- 19,351
- 15
- 74
- 97