question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`@graphql-eslint/no-unreachable-types` reports issues with interfaces

See original GitHub issue

Given this

interface User {

}

type SuperUser implements User {

}

type Query {
  user: User!
}

We’ll get an error regarding SuperUser no in use.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
kamilkisielacommented, Mar 24, 2021
2reactions
kamilkisielacommented, Mar 24, 2021

I’ll fix it

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: `no-unreachable-types` does not recognize implemented ...
version: v0.7.2 repro: interface Foo { foo: String } type FooBar ... error Type "Foo" is unreachable @graphql-eslint/no-unreachable-types.
Read more >
Readme - @graphql-eslint/eslint-plugin - npm
For example, no-unreachable-types checks that all types are reachable by root-level fields. To use these rules, you'll need to tell ESLint ...
Read more >
Unions and interfaces - Apollo GraphQL Docs
Unions and interfaces are abstract GraphQL types that enable a schema field to return one of multiple object types. Union type.
Read more >
no-unreachable - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
TSConfig Reference - Docs on every TSConfig option
In some cases where no type annotations are present, TypeScript will fall back to a type of any for a variable when it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found