apollographql / apollographql/apollo-tooling

Downloading a local .graphql schema file does not honor type extensions

Open
#920 4 comments 2 reactions 0 assignees View on GitHub
:computer: component - language-server 🐞 bug 🙏 help-wanted
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

Apollo server is [supposed to support](https://www.apollographql.com/docs/graphql-tools/generate-schema.html#extend-types) types that are defined in SDL using the `extend` syntax. However, when the same local SDL file that is downloaded using the apollo service:download command, those type extensions are not reflected in the updated schema.json.

Related unresolved (but closed) issue: #210. Opening a new issue to avoid confusion with old version of tooling.

Contributor guide

Open the contributing guide

Research direction

Start with the apollo service:download command and trace how a local SDL file containing extend definitions becomes schema.json. Compare the downloaded schema with the original type extensions; done means those extensions are represented in the generated schema.json.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, cli
Issue type
Bug
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.