apollographql / apollographql/apollo-tooling

Setting up Intellisense for with localSchemaFile is broken

Open
#2,685 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

Having issues getting VSCode extension (apollographql.vscode-apollo) to find my graphql file. Am I missing some configuration?

apollo.config.cjs file:
```
module.exports = {
client: {
service: {
name: "default",
localSchemaFile: './src/schema.graphql'
},
},
};
```

folder structure:
```
- src/
- schema.graphql
- apollo.config.cjs
```

image

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with apollo.config.cjs and src/schema.graphql in the VSCode Apollo extension. Start by checking how localSchemaFile is resolved from the configuration, then verify that Intellisense discovers the schema and document the configuration or code change needed to make it work.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.