menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Platform
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team

Partially federated gateway

August 1, 2019 at 11:06am

Partially federated gateway

August 1, 2019 at 11:06am
Hi, Is it possible to have only partially federated gateway? I also have stackoverflow question about it with further details: https://stackoverflow.com/questions/57304658/is-it-possible-to-have-partially-federated-gateway

August 1, 2019 at 11:34am
No it is not possible
  • reply
  • like
Do you know if there's a reason for it? It might be worth implementing for lower entry barrier.
  • reply
  • like

August 4, 2019 at 11:26am
Are you looking for something like LocalGraphQLDataSource, which is currently undocumented, but similar to RemoteGraphQLDataSource? We haven't documented it yet, but you should be able to find references to it within tests, etc.
  • reply
  • like
I'd like to achieve something like following:
const gateway = new ApolloGateway({
serviceList: [
{ name: "some-service", url: "http://localhost:40001/graph" }
],
localServiceList: [
{ name: "rest-bridge", typeDefs }
]
});
Where rest-bridge would have local resolvers and typedefs, and bake it into bigger federated graph. Can I achieve it somehow with LocalGraphQLDataSource ?
like-fill
3
  • reply
  • like
Let's say I already have apollo server that taps into different rest APIs. I'd like to federate some graphql services into same graph without adding yet another service.
like-fill
3
  • reply
  • like

February 15, 2020 at 2:06am
My use case is different. Is it possible for the gateway to still produce a schema when some remote schema is incompatible or offline?
  • reply
  • like