RFC 3 / Accepted

Define Data Collections used in the spec

Opened on
Merged on

At a glance

Project
GraphQL Spec
Identifier
#1102
Stage
RFC 3 / Accepted
Champion
@benjie
Updated
2025-07-02
Latest activity
Pull request merged on
Source
Related RFCs

Pull request description

The spec uses the terms "set", "list" and "map" in many places. This PR defines these terms and their conformance requirements.

This is a change extracted from #1063 as discussed at last night's WG meeting

This is PR 1 of 3 in the "data collections" trilogy stack; next are:

  1. https://github.com/graphql/graphql-spec/pull/1092
  2. https://github.com/graphql/graphql-spec/pull/1063

cc @graphql/tsc

(Replacement of #1091; to do PR stack with #1092 and #1063)

Timeline

July 2025

June 2025

  • Top comment edited on by benjie
  • Advanced to RFC 3 on by leebyron
  • Discussed in GraphQL WG
    Next Steps

    Lee: Clean up and merge parts 1 and 2 of Benjie's data collections trilogy PRs

    Zoom summary · GraphQL WG · 2025-06-26
    Next Steps

    Lee: Review and simplify the data structures notation section at the top of the GraphQL spec before merging related PRs

    Zoom summary · GraphQL WG · 2025-06-26

    The group discusses several RFC (Request for Comments) proposals and their progress. They accept and merge a proposal about not excluding the schema keyword if the schema has a description, noting that GraphQL JS already implements this behavior. They also review a set of three related pull requests about data collections, which Benjie wants included in the next spec release to improve accuracy and precision. Lee agrees to include these changes, marking them as accepted, but notes he will make some editorial simplifications before merging. The meeting concludes with a brief mention of additional linked pull requests related to the data collections proposal.

    Zoom summary · GraphQL WG · 2025-06-26

    Benjie proposes three changes to improve consistency in GraphQL schema definitions. The first two changes are approved: one clarifies that fields should be returned in a consistent order when possible, and the other recommends maintaining order for unordered elements like enums. The third change, which explicitly marks certain schema parts as ordered, is set aside for further discussion due to potential implications for performance and implementation flexibility. Lee agrees to merge the first two changes.

    Zoom summary · GraphQL WG · 2025-06-26
  • Discussed in GraphQL WG

    The team discussed several proposals and RFCs related to GraphQL specifications. Mark proposed updates to the spec and implementation, which Lee supported and encouraged for conclusion. Benjie presented updates on data collection trilogy and one-off tasks, which Lee approved for merging. Rob shared progress on execution result definitions, which Lee praised for improving the type system coherence. The team celebrated the completion of default value coercion rules, which Benjie and Lee had worked on for a long time. Lee committed to reviewing and merging several proposals, including prevent skip and include on route subscription and discussion section 3 type system and execution versus request error.

    Zoom summary · GraphQL WG · 2025-06-05

May 2025

  • @benjie committed "Merge branch 'main' into data-collections" on
  • Discussed in GraphQL WG
    Next Steps

    Lee to review and provide feedback on the "data collections trilogy" PRs.

    Zoom summary · GraphQL WG · 2025-05-01

    In the meeting, Benjie discussed the data collections trilogy, which includes three pull requests. The first defines the data collections used in the spec, the second recommends maintaining the order of things, and the third specifies the specific ordering of certain things. Lee and Michael discussed the order of enum values and the potential for breaking existing implementations if order is enforced. Pascal suggested a difference between the result and the schema, as the order of fields in the result can be controlled, but not in the schema. Lee proposed making most things ordered but not requiring it, to avoid breaking existing implementations. The team agreed to merge the first pull request and review the second and third ones. The changes are intended to be editorial, clarifying the meaning of terms like list and set.

    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
  • @benjie committed "Define what a collection is and integrate feedback" on

July 2024

April 2024