apollographql / apollographql/federation

warn user of incompatible `fetcher` configuration when `buildService` is used

Open
#1,122 0 comments 1 reaction 0 assignees View on GitHub
:hugs: improvement
Dominant language
TypeScript
Stars
725
Forks
276
Avg merge
1h 47m
Merged PRs (30d)
1

Description

I was trying to configure a custom fetcher for my gateway. I tried to pass in `fetcher` as an argument, but it wasn't getting used. I later [learned](https://github.com/apollographql/federation/blob/732f8638a0ce428c8b0431f299f12f6f80d11a61/docs/source/api/apollo-gateway.mdx#configuring-the-subgraph-fetcher) that if you're specifying a `buildService` call, you need to configure the fetcher in a different way.

A warning that says "Hey, you're specifying a fetcher.. but also a build service. Note that this won't get picked up" would have saved me a handful of hours of debugging.

Contributor guide

Open the contributing guide

Research direction

Start with docs/source/api/apollo-gateway.mdx, especially the configuring-the-subgraph-fetcher section, to understand the interaction between fetcher and buildService. Trace the gateway configuration entry point and existing warning behavior; done means an incompatible fetcher configuration produces a clear warning when buildService is also specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.