require-nullable-result-in-root
💡 This rule provides suggestions
- Category:
Schema
- Rule name:
@graphql-eslint/require-nullable-result-in-root
- Requires GraphQL Schema:
true
ℹ️ - Requires GraphQL Operations:
false
ℹ️
Usage Examples
Incorrect
# eslint @graphql-eslint/require-nullable-result-in-root: 'error'
type Query {
user: User!
}
Correct
# eslint @graphql-eslint/require-nullable-result-in-root: 'error'
type Query {
foo: User
baz: [User]!
bar: [User!]!
}
Resources
Last updated on