At a glance
- Project
- GraphQL Spec
- Identifier
- FieldExtensions
- Stage
- RFC 0 / Strawman
- Champion
- —
- Updated
- 2026-02-05
- Latest activity
- Added to WG agenda on
- Source
- RFC document
- Related RFCs
- SchemaCoordinates
RFC document
Status
[!IMPORTANT] This document is not being worked on at the moment. For the latest status, refer to the graphql-spec issue.
RFC: Field Extensions
Champion: Emily Goodwin Co-Champion: Martin Bonnin
Problem statement
The current GraphQL specification allows type system extensions.
For example, it is possible to add directives to an existing type. In this example (from the specification text), a directive is added to a User type without adding fields:
extend type User @addedDirective
The same thing is not possible for fields:
# This is not valid GraphQL
extend type User {
id: ID! @key
}
This has been an ongoing pain point when working in clients that do not own the schema but want to annotate it for codegen or other reasons. In Apollo Kotlin, this has led to the proliferation of directives ending in *Field whose only goal is to work around that limitation. For an example, this is happening in the nullability directives:
# This can be added to a field definition directly
directive @semanticNonNull(levels: [Int!]! = [0]) on FIELD_DEFINITION
# This is the same thing but on the containing type.
# It is more verbose and cumbersome to write and maintain
directive @semanticNonNullField(name: String!, levels: [Int!]! = [0]) repeatable on OBJECT | INTERFACE
Proposal
This proposal introduces specific syntax to add directive to existing field definitions. It builds on top of the schema coordinates RFC to allow for a shorter syntax:
extend field User.id @key
Or for the nullability example above:
extend field User.address @semanticNonNull
This syntax purposedly disallows changing the type of the field and is limited to adding directives. The same validation as for other type system extensions would apply: the directive needs either not be already present or be repeatable.
Syntax:
FieldExtension:
extend field FieldCoordinates Directives[const]
Timeline
February 2026
- On the agenda for GraphQL WG
13 listed attendees · 6 agenda items · 3 linked RFCs
- Incremental delivery will be discussed at the secondary meeting (1m, Benjie on behalf of Rob)
- Field extensions (2min Emily, Martin) FieldExtensions
- Fragments are not for reuse (2min, Martin) #1193
- AI working group updates (5-10min, Kewei) MockSpec
- Archiving nullability-wg (2min, Martin)
- Clarifying "produced" schema vs "human written schema" as official wording in the spec (5min, Mark)
January 2026
- RFC document updated on by Martin Bonnin
December 2025
- On the agenda for GraphQL WG
8 listed attendees · 7 agenda items · 3 linked RFCs
- TSC elections editorial (5m, Benjie)
- TSC: Please approve "handbooks" project (5m, Benjie)
- Release trains (1m, Martin)
- scalars.graphql.org (10m, Martin)
- Issue club (5m, Martin)
- Discuss RFC field extensions (10m, Emily) #1196 FieldExtensions
- Discuss RFC matches directive (5m, Mark) MatchesDirective
October 2025
- RFC document updated on by Martin Bonnin
April 2025
- RFC document created on by Martin Bonnin