Skip to content

noDeprecated

Property Value
Config name noDeprecated
Default severity warn
Context Document-Schema
In recommended Yes

Warns when your operations use fields marked as @deprecated in the schema.

Given this schema:

type User {
id: ID!
name: String! @deprecated(reason: "Use fullName instead")
fullName: String!
}
# ⚠️ Warning — name is deprecated
query {
user {
name # Warning: Field 'name' is deprecated: Use fullName instead
}
}
# ✅ Good — using the replacement field
query {
user {
fullName
}
}
extensions:
graphql-analyzer:
lint:
rules:
noDeprecated: warn # or error, off