Skip to content

benatshippabo/graphql-vscode-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-vscode-bug

graphql/graphiql#2767

This bug is probably related to defining graphql-config.load.rootDir in a different directory than the schema.graphql and the schema watcher not firing.

Steps to reproduce

  1. Open project in vscode
  2. Open src/query.graphql notice that the language service works fine
  3. git checkout feat/add-create-user-mutation
  4. Open src/mutation.graphql
  5. Notice error on CreateUserInput! even though the schema has it defined
  6. Restart graphql language server
  7. Notice language service is fine now

In this example we see:

.
├── .vscode
│  └── settings.json
├── configs
│  └── .graphqlrc.yml
├── README.md
├── schema.graphql
└── src
   ├── mutation.graphql
   └── query.graphql

Since .graphqlrc.yml and schema.graphql are in separate folders, we see that the GetUser query is fine because of the stale schema stored in the language server. But updating the schema does not update the schema stored in the language server. This is shown since CreateUserInput! errors out.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published