I have 2 graphql services, each serving a subset of data with the same schema.
Service1 has a list of Users with ID 1-10,000
Service2 has a list of Users with ID 10,001-20,000
My User Type looks like
type User {
id: ID!
name: String!
}
Each service has a graphql query to resolve a user.
type Query {
fetchUser(id: ID!): User
fetchUsers: [User!]
}
Is there a way that apollo can query both services and merge the results, So I dont have to query each service individually?