✅ The "extends": "plugin:@graphql-eslint/schema-recommended"
property in a configuration file enables this rule.
- Category:
Schema
- Rule name:
@graphql-eslint/no-unreachable-types
- Requires GraphQL Schema:
true
ℹ️ - Requires GraphQL Operations:
false
ℹ️
Requires all types to be reachable at some level by root level fields.
# eslint @graphql-eslint/no-unreachable-types: 'error'
type User {
id: ID!
name: String
}
type Query {
me: String
}
# eslint @graphql-eslint/no-unreachable-types: 'error'
type User {
id: ID!
name: String
}
type Query {
me: User
}