noAnonymousOperations
| Property | Value |
|---|---|
| Config name | noAnonymousOperations |
| Default severity | error |
| Context | Document |
| In recommended | Yes |
What it checks
Section titled “What it checks”Requires all GraphQL operations to have a name. Named operations improve debugging, logging, and tooling integration.
Examples
Section titled “Examples”# ❌ Bad — anonymous operationquery { user { id }}# ✅ Good — named operationquery GetUser { user { id }}Configuration
Section titled “Configuration”extensions: graphql-analyzer: lint: rules: noAnonymousOperations: error # or warn, off