no-scalar-result-type-on-mutation
💡 This rule provides suggestions
- Category:
Schema
- Rule name:
@graphql-eslint/no-scalar-result-type-on-mutation
- Requires GraphQL Schema:
true
ℹ️ - Requires GraphQL Operations:
false
ℹ️
Usage Examples
Incorrect
# eslint @graphql-eslint/no-scalar-result-type-on-mutation: 'error'
type Mutation {
createUser: Boolean
}
Correct
# eslint @graphql-eslint/no-scalar-result-type-on-mutation: 'error'
type Mutation {
createUser: User!
}
Resources
Last updated on