Support local and remote services in ApolloGateway
See original GitHub issueCurrently ApolloGateway
supports the serviceList
option for remote GraphQL services and localServiceList
for local GraphQL schemas, but they cannot be used together. It would be great if ApolloGateway
allowed both remote and local schemas.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
API Reference: @apollo/gateway - Apollo GraphQL Docs
This API reference documents the exports from the @apollo/gateway package. This package enables you to use ... url: 'https://products-service.dev/graphql',.
Read more >graphql - Is it possible to have partially federated gateway?
Now it looks like I need to have federation gateway service, federated graphql service(s) and the rest<->graphql bridge service separately.
Read more >Support GraphQL schema federation - DatoCMS community
Hi, Is it possible to use Apollo Federation with remote schemas which is generated by third-party service? I want to merge my API...
Read more >Apollo Federation with local schemas - koala-moon
KEY || ''; // This string is uses to access the remote services inside or micro service environment. It is used once when...
Read more >Implementing Federated GraphQL Microservices using Apollo ...
Each service is responsible for resolving only the part of the data graph that includes ... npm i --save apollo-server @apollo/federation @apollo/gateway ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry I should have mentioned that I had tried returning a
LocalGraphQLDataSource
inside ofbuildService
but ran into some issues:url
in the service definition.buildService
(a second time for the service), but does not include anything originally in the definition (likeschema
) so I have to do a check onname
and then referenceschema
from a higher scope. Is this expected? I didn’t originally notice this so now I have it working.Here is what I have now for reference. Is this the “correct” way to use
LocalGraphQLDataSource
?@rahul22048 oh it is very old at very end we did make following:
right inside apollo federation gateway wrap all services with code pieces from graphql federation transformation
in at very end our gateway was something like:
where process function inside returned records as is if there were no config property, other wise do transformation with applied configs
and it was working for a while, but later we did manage how to make federation support in dotnet so no need for this, at moment everything is working without any proxies