Questions tagged [apollo-gateway]
41 questions
9
votes
1 answer
Using Apollo Federated GraphQL, is there a way to sort/paginate on a value from an external entity?
Is it possible to mark a field in an input to a query as requiring a field extended by a different service?
Using the federation-demo to illustrate my question, but keeping a little bit more simple. Having just an Account service and a Reviews…

onthegojohn
- 216
- 2
- 4
6
votes
1 answer
GraphQL Federation : Is there a Java Springboot gateway
Is there a GraphQL federation gateway in Java / SpringBoot. Couldn't find any implementations in java. Saw few example with federated graph but the gateway was on native node .
Checked both Apollo and netflix DGS…

Michael George
- 647
- 9
- 15
3
votes
0 answers
ApolloGraphQL Federation Gateway on AWS Lambda Cannot read property 'QUERY' of undefined
I'm trying to set up a test federated GraphQL instance using serverless lambdas. Right now I have the products subgraph deployed on one lambda and the gateway deployed on another lambda. Queries to the products lambda work fine; however, making the…

user18175917
- 31
- 1
3
votes
0 answers
apollo-federation validate input field in another subgraph
in microservice project I have configured graphql, apollo-federation, apollo-gateway.
Menu service
mutation createMenu(location_id: ID!): Menu
Location service
type Location{
id: ID!
}
type Query{
location(id: ID!): Location
}
in menu…

Ozal Zarbaliyev
- 566
- 6
- 22
2
votes
1 answer
how to use apollo federation gateway with middleware
I'm using apollo federation + typescript to implement a graphql server with subgraphs. Currently I'm working on the gateway, and I want to apply middleware to it, which will perform a token exchange functionality. The problem is that I can't get my…

Nane Petrosyan
- 553
- 1
- 7
- 19
2
votes
0 answers
Apollo Federation (Gateway): how to send different "keys" to different implementing microservices?
I am trying to compose a federated apollo service with a gateway and 3 implementing microservices.
MS1:
type Movie @key(fields: "id name") {
id: String!
name: String
}
MS2:
type Location @key(fields: "id") {
id: String!
longitude:…

ashiaka
- 3,994
- 8
- 32
- 45
2
votes
1 answer
Multiple ApolloServers needed to implement a gateway connecting to REST APIs?
I'm building a graphql gateway service, which merge multiple services into one graph, using Apollo/Node/Express and following the Apollo Federation model. Initially, most of the services I'll be connecting to are REST services.
In all of the…

n10n
- 21
- 1
2
votes
0 answers
Apollo federation: Field/resolver that returns entities from two separate services that implement an interface
Summary
In GraphQL Apollo managed federation, I'm trying to figure out if it's possible for one service to have an aggregate field, that returns an array of entities two separate services. As in, I'm trying to support this use case:
query…

Andy Ray
- 30,372
- 14
- 101
- 138
2
votes
0 answers
Netflix Gateway implementation
So I was reading an article about how Netflix scales its API with graphql federation. In second part of this article I noticed a fact that Netflix has developed a special Gateway based on apollo federation…

Adnan
- 21
- 1
2
votes
1 answer
connect ECONNREFUSED, Apollo Federation
I decided to study the Apollo Federation by the example from their website. I have three services that I am trying to merge under a federation, but I catch this error:
Error checking for changes to service definitions: Couldn't load service…

Tropicano01
- 21
- 3
2
votes
0 answers
connect My spring Boot Graphql to Apollo Gateway
I am trying to develop microservices with Spring Boot that will expose GraphQL, and connect them all to Apollo Gateway but I have the following error:
UnhandledPromiseRejectionWarning: Error: Apollo Server requires either an existing schema, modules…

Omar Sallah
- 21
- 1
- 3
2
votes
0 answers
Authentication service with Apollo Gateway
I am developing a microservices-based application using Apollo Gateway. Each service is written in Node.js and uses Graphql to build a federated schema. I am also using Mongoose to interact with a MongoDB database shared between the services. The…

Christian Manfredi
- 21
- 3
2
votes
1 answer
Apollo gateway with typescript wont accept user ID in context
I have been trying to implement Apollo's new gateway using typescript. But I keep running into a single typescript issue that I just cant seem to solve. The error message is "Property 'userId' does not exist on type 'TContext'.ts(2339)". Note I am…

Fallz
- 47
- 1
- 6
1
vote
0 answers
Error from a non-sharable field defined in a subgraph that shoudn't have this field
I have multiple GraphQL microservices (subgraphs, using ApolloFederationDriver) with a GraphQL gateway (using ApolloGatewayDriver)
I have a really strange bug since I've upgraded my GraphQL microservices and gateway to use @apollo/server…

MrSquaare
- 53
- 3
1
vote
1 answer
Apollo Federation: A valid schema couldn't be composed. The following composition errors were found: Syntax Error: Unexpected character: U+0130
I tried to use Apollo Federation and I create an user service and gateway. User service is working alone fine but Gateway is giving an error:
Error: A valid schema couldn't be composed. The following composition errors were found:
Syntax…

Ertan Özdemir
- 67
- 6