Skip to content

noAnonymousOperations

PropertyValue
Config namenoAnonymousOperations
Default severityerror
ContextDocument
In recommendedYes

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