Questions tagged [apollo-federation]

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.

https://www.apollographql.com/docs/federation/

208 questions
0
votes
0 answers

GraphQL Error: Query root type must be provided on Rover-generated schema

I am trying to test an Apollo Federation 2 gateway. For that purpose, I generated schema from two subgraphs using Rover. This results in supergraph.graphql: schema @link(url: "https://specs.apollo.dev/link/v1.0") @link(url:…
Denis
  • 322
  • 1
  • 4
  • 15
0
votes
0 answers

Fetch schema fails with Apollo managed federation

I integrate apollo managed federation with my apollo federation (gateway) with nestjs but when I run my gateway service I face with CheckFailed: one or more checks failed error. I followed official document. but get the mentioned error. If anyone…
0
votes
1 answer

Java GraphQL Spring Boot Apollo federation issue with reference resolver

I am trying to get Apollo federation working with two GraphQL services using Java/Spring Boot and graphql-kickstart. Consider the following schemas: Person Service: type Person @key(fields: "id") { id: String! name: String! } Book Service: type…
0
votes
0 answers

Apollo router rust plugins yaml configuration

Hi I am trying to include multiple rust plugins in the router.yaml file but can't seemed to find any information online, also try different things on the yaml file but always got error about unexpected property name "group1.plugin_2". plugins: …
kjunz
  • 111
  • 1
  • 7
0
votes
0 answers

Apollo Federation merge query and input type across federated services

In Apollo Federation 2 : Consider the following two services that both own an entity of the same name called Product : Products service : type Product @key(fields: "id") { id: Int! productname: String! } Inventory service : type…
John Kim
  • 1,081
  • 10
  • 26
0
votes
0 answers

Apollo Rover CLI returns non-wrapped schema when using NestJS driver

I have two subgraphs hosting their own respective schemas. Each of these schemas have input types that are named the same. For example, both schemas have an entity called Product and therefore both have inputs relevant to this entity called…
John Kim
  • 1,081
  • 10
  • 26
0
votes
0 answers

How to use Apollo Rover CLI (instead of apollo server) with a prisma schema

I am trying to figure out how to resolve issues that have recently arisen with using apollo with a prisma schema. I didn't change any code in my app, and when I got back from a holiday (not a single line touched) I can no longer interact with my…
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
1 answer

NestJS GraphQL Apollo Federation many-to-many ResolveField is not triggered

I have 3 services, which are technically completely separate from each other: User Channel UserChannelMembership Each service defines its own subgraph. User does not refer Channel, Channel does not refer User. The only service which refers both is…
Alex Smirnoff
  • 478
  • 4
  • 10
0
votes
0 answers

GraphQL federated authentication from multiple servers

I have multiple databases built with pretty much the exact same stack express + mongo and the same data schema across all of them. I would like there to be 1 endpoint where a user can login and rather than route the request to 1 database that it…
Kravitz
  • 2,769
  • 6
  • 26
  • 53
0
votes
0 answers

apollo graphql federation server, load balancer health checks fail

I have a project which contains 6 graphql subgraphs and one gateway (express server) that federates those and connects to those. I have deployed this project on aws, each of those servers represents an ECS task and a load balancer attached to it.…
Nane Petrosyan
  • 553
  • 1
  • 7
  • 19
0
votes
1 answer

Is it possible to check the id exists from one service to another in apollo-server with graphql?

I am stuck in the following problem, has anyone faced the same? I have got two services using apollo-server with graphql using mongodb: Group service User service
 Group service contains “users” which will be resolved from User service.
 Need to…
0
votes
2 answers

Is it possible to input one argument out of two in GraphQL?

I have a situation where in I have to input one parameter out of the given two. Suppose the schema is input fruit { apple: Apple banana: banana } Now, if user inputs apple, then he cannot input banana and vice-versa. Is this possible in…
0
votes
1 answer

Apollo Gateway: duplicate / identical types across subgraphs returns null results?

My team and I are trying to move away from our monolithic Apollo Server API pattern toward GQL micro services with Apollo Federation. Before we get into any code, some preface: my team has used GraphQL Codegen for our monolith to make a single…
Werewoof
  • 174
  • 10
0
votes
1 answer

Resolve Same Entity in Different Services

I have use-case where same entity type needs to resolved in multiple service, for example Service A has type Post type Post{ id: ID! title: String } Service B has same type Post type Post{ id: ID! title: String } I have used apollo…
Hari
  • 1,545
  • 1
  • 22
  • 45
0
votes
1 answer

Rover is composing supergraph with unexpected character

I'm following the docs trying to get an apollo gateway up and running. I'm using rover to compose my subgraph with this command: rover supergraph compose --config ./supergraph-config.yaml > supergraph.graphql The command works, however when I try to…
user
  • 1,022
  • 2
  • 8
  • 30