noDeprecated
| Property | Value |
|---|---|
| Config name | noDeprecated |
| Default severity | warn |
| Context | Document-Schema |
| In recommended | Yes |
What it checks
Section titled “What it checks”Warns when your operations use fields marked as @deprecated in the schema.
Examples
Section titled “Examples”Given this schema:
type User { id: ID! name: String! @deprecated(reason: "Use fullName instead") fullName: String!}# ⚠️ Warning — name is deprecatedquery { user { name # Warning: Field 'name' is deprecated: Use fullName instead }}# ✅ Good — using the replacement fieldquery { user { fullName }}Configuration
Section titled “Configuration”extensions: graphql-analyzer: lint: rules: noDeprecated: warn # or error, off