apollographql / apollographql/vscode-graphql

Cannot extend type "<some-type>" because it is not defined

Open
#61 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
79
Forks
23
PR merge metrics
No merged PRs in 30d

Description

If i extend types in my client-only schema, I get the above errors.

After some investigation, I found out that this actually only happens when reading the schema from a localhost URL like:

```
service: {
name: ,
url: 'http://localhost:3000/graphql',
skipSSLValidation: true,
},
```

When looking at my server, it actually does not look like the local URL is being used at all?

┆Issue is synchronized with this [Jira Task](https://apollographql.atlassian.net/browse/NEBULA-1022) by [Unito](https://www.unito.io)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the error with a client-only schema that extends an undefined type and a service URL at http://localhost:3000/graphql. First verify which schema URL the VS Code extension reads; done means local schema loading works and extended types no longer produce the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
devtools
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.