no-anonymous-operations
Require name for your GraphQL operations. This is useful since most GraphQL client libraries are using the operation name for caching purposes.
✅ 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ℹ️
Require name for your GraphQL operations. This is useful since most GraphQL client libraries are using the operation name for caching purposes.