Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch schema files #985

Closed
joshribakoff-sm opened this issue Mar 8, 2022 · 1 comment
Closed

Watch schema files #985

joshribakoff-sm opened this issue Mar 8, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@joshribakoff-sm
Copy link

joshribakoff-sm commented Mar 8, 2022

Is your feature request related to a problem? Please describe.
I have to reload my editor window everytime I edit the schema. Eg.

query {
 me: User
}

type User {
  id: String!
}

now edit to this:

query {
 me: User2
}

type User2 {
  id: String!
}

Gives:

Type "User2" is unreachableeslint@graphql-eslint/no-unreachable-types

Once the user reloads vscode, eslint restarts and your plugin rereads the schema and the stale error is fixed. This is annoying.

Describe the solution you'd like
If eslint is running in watch mode, watch the underlying schema files and reload them. Reload the schema files every-time the rule in invoked if necessary.

@joshribakoff-sm joshribakoff-sm changed the title Watch files Watch schema files Mar 8, 2022
@dimaMachina
Copy link
Owner

duplicate #593

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants