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