At a glance
- Project
- GraphQL Spec
- Identifier
- #1053
- Stage
- RFC 3 / Accepted
- Champion
- @benjie
- Updated
- 2025-05-15
- Latest activity
- Pull request merged on
- Source
- Pull request
Pull request description
This PR addresses a spec validation omission; if an interface field is not deprecated then any implementation of that interface field should also not be deprecated. I.e. the following schema should be invalid, but before this PR it is valid:
interface Node {
id: ID!
}
type Foo implements Node {
id: ID! @deprecated(reason: "...")
}
type Query {
foo: Foo
}
To solve this, either the deprecation should be removed, or the id field on Node should also be deprecated:
interface Node {
id: ID! @deprecated(reason: "...")
}
Relevant action item: https://github.com/graphql/graphql-wg/issues/1331
GraphQL.js Implementation: https://github.com/graphql/graphql-js/pull/3986
Timeline
May 2025
- Pull request merged on by leebyron
- Advanced to RFC 3 on by leebyron
- Discussed in GraphQL WGNext Steps
Lee to review and merge the PR for "implementations may not deprecate a field that the interface hasn't deprecated".
Zoom summary · GraphQL WG · 2025-05-01The group discusses a pull request that clarifies the types of GraphQL responses. They consider whether different media types are needed for various response types, concluding that the existing GraphQL response and JSON format should suffice. The conversation touches on how subscriptions and deferred responses might be handled, though these are not addressed in the current pull request. Lee expresses enthusiasm for the direction of the changes, appreciating the clearer definition of response types. The group then moves on to discuss and merge a proposal about interface field deprecation.
Zoom summary · GraphQL WG · 2025-05-01
April 2025
- On the agenda for GraphQL WG
11 listed attendees · 16 agenda items · 14 linked RFCs
- Let's set a July 1st deadline for spec release (2m, Benjie)
- Open Telemetry Sub Commitee announcement (2m, Pascal)
- Add 'extensions' to request (5m, Benjie) #976
- Provision for unknown request information (5m, Martin)
- Defer/Stream Updates (10m, Rob) DeferStream
- Benjie's editorial PRs (20m, Benjie)
- Clarify "before execution begins" (10m, Benjie and Martin)
- Disabling error propagation proposal (10m, Alex) #1153
- Reaching a consensus on Semantic Nullability (25m, Alex) SemanticNullability wg#1700 #1065
- Make includeDeprecated non-null (10m, Martin) #1142
- Please give feedback on the following (2m, Martin)
- Implementations may not deprecate a field that the interface hasn't deprecated (2m, Benjie) #1053
- Prevent @skip and @include on root subscription selection set (5m, Benjie) #860
- OneOf Input Objects (10m, Benjie) #825
- Default value coercion rules (15m, Benjie) #793
- Define Data Collections used in the spec (20m, Benjie) #1102 #1092 #1063
March 2025
- @benjie committed "Merge branch 'main' into interface-deprecated-field-consistency" on
January 2025
- Discussed in GraphQL WG
December 2024
- @benjie committed "Avoid negative, don't refer to directive" on
- Advanced to RFC 2 on by leebyron
- Discussed in GraphQL WG
RFC - promote to RFC2?
Meeting notes · GraphQL WG · 2024-12-05
November 2024
- Top comment edited on by benjie
December 2023
- Advanced to RFC 1 on by mjmahone
- Discussed in GraphQL WG
November 2023
- Pull request created on by benjie
- Top comment edited on by benjie
- @benjie committed "Implementations may not deprecate a field that the interface hasn't d…" on
- Advanced to RFC 0 on by benjie