no-unreachable-types
✅ The "extends": "plugin:@graphql-eslint/schema-recommended" property in a configuration file
enables this rule.
💡 This rule provides suggestions
- Category: Schema
- Rule name: @graphql-eslint/no-unreachable-types
- Requires GraphQL Schema: trueℹ️
- Requires GraphQL Operations: falseℹ️
Usage Examples
Incorrect
# eslint @graphql-eslint/no-unreachable-types: 'error'
 
type User {
  id: ID!
  name: String
}
 
type Query {
  me: String
}Correct
# eslint @graphql-eslint/no-unreachable-types: 'error'
 
type User {
  id: ID!
  name: String
}
 
type Query {
  me: User
}Resources
Last updated on