At a glance
- Identifier: #1040
- Stage: RFC 3 / Accepted
- Champion: @martinbonnin
- Latest activity: Spec PR merged on 2024-12-05
- Spec PR: https://github.com/graphql/graphql-spec/pull/1040
- Related:
Spec PR description
Follow up from https://github.com/graphql/graphql-spec/issues/53#issuecomment-1688335159
Make reason non-nullable:
directive @deprecated(
reason: String! = "No longer supported"
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
This is technically a breaking change for someone that does this:
type Foo {
bar: String! @deprecated(reason: null)
}
But feels like this shouldn't be allowed in the first place?
Fixes https://github.com/graphql/graphql-spec/issues/53
Timeline
December 2024
- Spec PR merged on 2024-12-05 by leebyron
- Advanced to RFC 3 on 2024-12-05 by leebyron
- Added to WG agenda on 2024-12-05
- Mentioned in WG notes on 2024-12-01
November 2024
- 2 commits pushed on 2024-11-22
- @martinbonnin committed "update language for deprecationReason"
- @martinbonnin committed "add missing bang"
- Advanced to RFC 1 on 2024-11-08 by benjie
- Added to WG agenda on 2024-11-07
October 2024
- Top comment edited on 2024-10-24 by benjie
- Advanced to RFC 0 on 2024-10-24 by benjie
August 2023
- Top comment edited on 2023-08-23 by martinbonnin
- Spec PR created on 2023-08-23 by martinbonnin
- @martinbonnin committed "Make the reason argument in `@deprecated` non-nullable" on 2023-08-23