Skip to content

noDeprecated

PropertyValue
Config namenoDeprecated
Default severitywarn
ContextDocument-Schema
In recommendedYes

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