Skip to content

noAnonymousOperations

Property Value
Config name noAnonymousOperations
Default severity error
Context Document
In recommended Yes

Requires all GraphQL operations to have a name. Named operations improve debugging, logging, and tooling integration.

# ❌ Bad — anonymous operation
query {
user {
id
}
}
# ✅ Good — named operation
query GetUser {
user {
id
}
}
extensions:
graphql-analyzer:
lint:
rules:
noAnonymousOperations: error # or warn, off