At a glance
- Project
- GraphQL Spec
- Identifier
- #1040
- Stage
- RFC 3 / Accepted
- Champion
- @martinbonnin
- Updated
- 2024-12-05
- Latest activity
- Pull request merged on
- Source
- Pull request
Pull request 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?
Timeline
December 2024
- Pull request merged on by leebyron
- Advanced to RFC 3 on by leebyron
- Discussed in GraphQL WG
November 2024
- 2 commits pushed on
- @martinbonnin committed "update language for deprecationReason"
- @martinbonnin committed "add missing bang"
- Advanced to RFC 1 on by benjie
- On the agenda for GraphQL WG
12 listed attendees · 7 agenda items · 4 linked RFCs
- Make reason non-nullable in @deprecated (@martinbonnin, 5 min) #1040
- Discuss enhancing deprecation (@gwardwell, 15 min) #997
- Incremental Delivery update (@robrichard, 15 min) #1110
- Nullability WG Update (@twof, 10 min)
- Directive Meta-Field Proposal (@yaacovCR, 5 min) #1114
- Subscriptions and Source Event Stream Errors (@yaacovCR, 15m)
- Interface field argument default values (@yaacovCR, 15m)
October 2024
- Top comment edited on by benjie
- Advanced to RFC 0 on by benjie
August 2023
- Top comment edited on by martinbonnin
- Pull request created on by martinbonnin
- @martinbonnin committed "Make the reason argument in `@deprecated` non-nullable" on