apollographql / apollographql/federation

Apollo Gateway requires custom directives to be declared in every federated service

Open
#418 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
725
Forks
276
Avg merge
1h 47m
Merged PRs (30d)
1

Description

If we create a custom directive specific to any federated service, the gateway fails to start unless we define the directive in every federated services that is part of our data graph. Is there a workaround to this?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the gateway startup failure with a custom directive declared in only one federated service. Read the gateway and federated-service setup involved in the data graph, then determine whether the gateway can start without duplicating the declaration in every service. Done means the documented workaround or required behavior is confirmed and covered by an appropriate regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.