menu
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
Posts
Members
Info

Why does `buildFederatedSchema` ignore custom directives?

Hi! I'm diving into @apollo/federation and the demo app and I'm wondering why directives defined on federated schemas are thrown away in the _Service.sdl field. Just wondering if I'm missing some key concepts! It looks like directives are filtered down the federation-specific…

thumbsup
5
message-simple
13

How to use interfaces across services?

I have an interface defined in one service called SearchableEntity I would like to be able to use it in a different service like this: I created stub like it's done for regular types: …

thumbsup
1
message-simple
4

SSR?

We currently stitch our schema together and use link-schema to SSR our React app. Is there any way to provide a federated schema to Apollo client other than over HTTP? I'm totally stuck on this. I can see separating the GraphQL server from the React application server, but it…

thumbsup
0
message-simple
0

Question about apollo federation with local schemas

I'm really exited about the patterns made possible with apollo federation. We have some restrictions which makes having separate microservices for every federated schema not possible. I think the deployment architecture could be decoupled from the other patterns exposed in…

thumbsup
8
message-simple
3

[ANYONE FROM APOLLO PLEASE ANSWER IT!]: Do some action on gateway's side after…

Hello. I wanna implement simple auth after mutation: I generate a token after mutation and then save it to cookies or anywhere else on the client -> the gateway side. Also, I have a couple of refetches on this mutation that doesn't work (they don't see updated cookies because…

thumbsup
2
message-simple
3

Forwarding response headers back to the client

Is there a way to forward http response headers from a backend service to the client via a federation gateway? Right now, we have a (non-federated) graphql server that, in addition to sending back its normal graphql payload, will sometimes also send back a Set-Cookie header. We…

thumbsup
2
message-simple
24

Testing subgraph with Query stub in federated schema

Hi, We are building a federated graph and have a problem regarding testing the independent subgraphs. We have a subgraph that defines a field on a type with a parent provided by another service at the Query level. The problem is that the organization and organizations fields on…

thumbsup
1
message-simple
1

Sharing an @auth directive over multiple services

Hi, I am trying to implement RBAC in my federated Apollo stack. Normally I would use a @hasPermission(permission = 'module.submodule.action'). However the directives are not shared between the services so now each service would need to implement the same directive. This would…

thumbsup
0
message-simple
0

buildFederatedSchema not update schema.

Has a problem with Apollo Federation, when update one microservice with buildFederatedSchema, i need restart gateway to schema has been actualization. Have solution for this?

thumbsup
0
message-simple
0

Sharing context across services through Gateway is not working

https://www.apollographql.com/docs/apollo-server/federation/implementing/ If i use this code to pass the app token from gateway to underlying services. it throws me an error of " Error: Apollo Server requires either an existing schema, modules or typeDefs " …

thumbsup
0
message-simple
3