Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMultiple Graphql API Routes example #16320
Comments
|
Another solution would be: https://github.com/habx/apollo-multi-endpoint-link new ApolloClient({
link: ApolloLink.from([
new MultiAPILink({
endpoints: {
housings: 'https://housings.api',
projects: 'https://projects.api',
...
},
createHttpLink: () => new HttpLink({ ... }),
}),
])
})More info here: https://www.habx.com/tech/micro-graphql-schema |
|
Or maybe an example showing up how to integrate Apollo Server Federation |


Feature request
Is your feature request related to a problem? Please describe.
It'd be super helpful to have an example of a multiple api routes setup using graphql, all examples I can see are considering just one single api route, but in a real world we usually will need multiple APIs, specially when working with serverless functions. Maybe there is some sort of limitation around multiples api server with graphql that I'm not aware of.
Additional context
The solution described in this article would be helpful to connect multiple graphql endpoints into one single graphql instance, something like:
and then:
What's your thoughts?