RFC 1 / Proposal

Allow interfaces with no fields, unions with no members

Opened on
Merged on

At a glance

Project
GraphQL Spec
Identifier
#1229
Stage
RFC 1 / Proposal
Champion
@benjie
Updated
2026-11-05
Latest activity
Pull request merged on
Source

Pull request description

Follow up to:

  • #1228

This is again to help subschemas remain valid. Empty unions is fine (we already allow interfaces with no implementations, which is kind of the mirror), but empty interfaces makes it so people may want to use interfaces where unions should currently be used... Relevant:

  • #236

Incidentally I'm okay with deprecating unions... And adding @oneOf output types instead.

Timeline

November 2026

  • Pull request merged on by benjie
  • Discussed in GraphQL WG

    The GraphQL Foundation working group meeting focused on several key proposals and discussions. Leif presented a proposal to create a Java Special Interest Group (SIG) to bring together Java companies and maintainers interested in GraphQL, with support from companies like Netflix, Airbnb, and various Java GraphQL implementations. Dale discussed a proposal for standardizing how agents search GraphQL schemas, which led to a detailed conversation about handling empty object types, interfaces, and unions, with the group ultimately favoring option A that uses type T with curly braces to indicate empty types while maintaining consistency across most syntax except for unions. Andy presented two items: a pull request to clarify error location specifications in the GraphQL specification regarding Unicode code points and column calculations, and a proposal to implement stricter variable usage validation rules that was originally discussed three years ago but never fully implemented. The conversation ended with welcome messages for first-time attendees Dale and Leif.

    Zoom summary · GraphQL WG · 2026-11-05
    Next Steps

    Dale: Further discuss and refine the ideal syntax for empty unions, considering the trade-offs between grammatical consistency and the need to differentiate between stub types and empty types.

    Zoom summary · GraphQL WG · 2026-11-05

    Dale presented a proposal to standardize how agents search GraphQL schemas, which led to a discussion about handling empty object types, interfaces, and unions. The team debated three options for implementing this, with Benjie and Dale favoring a simpler solution that would make type T with empty curly braces valid, while Leebyron expressed concerns about changing the meaning of existing syntax. The discussion revealed challenges with union syntax, leading to a debate about whether to maintain consistency across all syntax types or accommodate the unique needs of unions.

    Zoom summary · GraphQL WG · 2026-11-05

    GraphQL Union Handling Proposals

    The team discussed proposals for handling empty unions in GraphQL schema definitions. Leebyron and Benjie debated syntax options, with Leebyron favoring option A (allowing empty unions) despite breaking consistency with existing rules, while Benjie suggested deprecating unions entirely. The group agreed to allow empty unions with syntax using double curly braces, though this would require breaking some tooling compatibility. Andy presented a pull request to clarify error location specifications in the GraphQL specification, particularly regarding Unicode code points and column calculations. The team also discussed a 3-year-old proposal from Benjie regarding stricter validation rules for nullable variables with default values, which Andy agreed to implement in GraphQL.js with both legacy and new rule options available.

    Zoom summary · GraphQL WG · 2026-11-05

October 2026

  • Discussed in GraphQL WG

    The meeting of the GraphQL specification working group focused on discussing empty object types, empty interfaces, and the defer and stream specs. Martin presented a proposal to allow empty object types, which was supported by the group, and it was decided to move this to the next stage for consideration in the primary meeting. The group also discussed allowing empty interfaces and unions, with Benjie explaining the motivation behind these changes. Rob raised concerns about the overhead and potential security issues with the defer feature, particularly when used within large lists, and proposed a limit on the number of defers per request as a solution. Benjie expressed reservations about this approach, suggesting that the underlying issue might be with the label system used for defer accounting and that a better solution could be found. The discussion explored various technical challenges and potential compromises, but no final decision was made on how to address the defer issue.

    Zoom summary · GraphQL WG · 2026-10-15
    Next Steps

    Martin: Add unions to the current pull request for empty interfaces and update the implementation to include unions.

    Zoom summary · GraphQL WG · 2026-10-15

    Benjie and Martin discussed handling empty types in GraphQL, specifically regarding interfaces, unions, and object types. They agreed to create separate flags for empty object types and abstract types (interfaces/unions) rather than using the same flag for both. Martin noted that the implementation already includes a flag for "allow empty interfaces types" but needs to be extended to include unions. Benjie suggested that implementing this would help determine whether the changes should be in separate pull requests or combined, based on any unexpected complexities that might arise.

    Zoom summary · GraphQL WG · 2026-10-15

July 2026

  • Advanced to RFC 1 on by leebyron
  • Discussed in GraphQL WG

    The GraphQL Working Group held their July meeting to review multiple specification proposals and updates. The group discussed best practices for writing robust applications, with Martin presenting a new documentation page on handling schema changes that received approval for immediate merging. James updated the team on one-of-inhabitability specifications, which moved to Stage 2 pending final review, while Pascal provided an overview of OTel semantic conventions requiring TSC approval before merging. Benjie presented several proposals including sibling errors, empty selection sets, empty object types, interfaces with no fields, and unions with no members, with the group supporting these changes and moving them to RFC 2 status. The team also reviewed the GraphQL over HTTP specification, which was nearly ready for release with only minor editorial changes remaining. The conversation ended with plans to complete spec freeze preparations for the upcoming August meeting and September/October specification cut.

    Zoom summary · GraphQL WG · 2026-07-02

    Benjie: Proceed with the proposals for "empty interfaces", "empty unions", and "empty enums" as separate RFCs, targeting RFC1 stage.

    Zoom summary · GraphQL WG · 2026-07-02

    The GraphQL Working Group meeting began with introductions from attendees including Lee, Benjie from Graphile, James from Airbnb, Martin from Apollo, Pascal and Michael from ChilliCream, Matt from Meta, and Mark from Yelp. Lee announced that the group would conduct a spec freeze before next month's meeting, aiming to complete it by August for the September/October cut. The meeting then moved to reviewing the agenda, which included discussing best practices for writing robust applications, including topics about sibling errors, empty selection sets, interfaces, and schema validation requirements.

    Zoom summary · GraphQL WG · 2026-07-02

    The team discussed several proposals related to empty schema definitions, including enums, unions, and interfaces. They agreed to merge these into RFC1, focusing on ensuring that schemas remain valid after removing deprecated elements. The group also approved the GraphQL over HTTP specification, which will be released in September 2026, while the query method in HTTP is planned for GraphQL 1.1. The team decided to proceed with the current specification release without waiting for the query method, as it represents a significant simplification from previous proposals.

    Zoom summary · GraphQL WG · 2026-07-02

May 2026