no-anonymous-operations
✅ The "extends": "plugin:@graphql-eslint/operations-recommended"
property in a configuration file
enables this rule.
💡 This rule provides suggestions
- Category:
Operations
- Rule name:
@graphql-eslint/no-anonymous-operations
- Requires GraphQL Schema:
false
ℹ️ - Requires GraphQL Operations:
false
ℹ️
Usage Examples
Incorrect
# eslint @graphql-eslint/no-anonymous-operations: 'error'
query {
# ...
}
Correct
# eslint @graphql-eslint/no-anonymous-operations: 'error'
query user {
# ...
}
Resources
Last updated on