apollographql / apollographql/federation

Allow extra fields in serviceList

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

Description

Package version: apollo-gateway 0.10.8

The config currently allows defining your own subclass of `GraphQLDataSource` with `buildService`, but the `serviceList` field does not allow any objects with fields other than `name` and `url`. It would be nice to be able to set extra parameters for these custom data sources.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how apollo-gateway 0.10.8 validates the serviceList field and how buildService creates GraphQLDataSource instances. Confirm how serviceList entries reach custom data sources; done means entries with fields beyond name and url are accepted and those extra parameters are available to the custom data source.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.