At a glance
- Project
- GraphQL Spec
- Identifier
- #1081
- Stage
- RFC 2 / Draft
- Champion
- @JoviDeCroock
- Updated
- 2026-11-28
- Latest activity
- 4 commits pushed on
- Source
- Pull request
- Related RFCs
- #1010
Pull request description
This spec contains amendments to https://github.com/graphql/graphql-spec/pull/1010, a diffed view is available at https://github.com/mjmahone/graphql-spec/pull/3.
These amendments are made from comments on the implementation PR and alterations from the new implementation
- Changing fragment-key to just be fragment-name https://github.com/graphql/graphql-js/pull/3835#discussion_r1101825832
- Removing the substitution logic and going closer to the
coercelogic we use in the general flow
In general the biggest changes are that we introduce fragmentVariableValues which will be on the groupedFieldSet, these are derived from the arguments in scope of the fragmentDefinition where this field is used.
We introduce localFragmentVariables which as we are traversing down fragment-spreads are a coerced set of variables i.e.
query($b: String!, $c: String!) {
field3(b: $b) ## uses b from variable-values
...A(a: "A", b: "B")
}
fragment A($a: String!, $b: String!) on X {
field(a: $a) ## uses $a from localVariableValues
field2(c: $c) ## we have access to variableValues so we take c from there
...B(b: $b) ## uses $b from localVariableValues
}
fragment B($b: String!) on X {
## This fragment has access to $b and $c but not to $a
field4(b: $b) ## uses $b from localVariableValues
}
Last but not least we introduce getArgumentValuesFromSpread which looks at the spread and fragment-definition and establishes a coerced set of localVariableValues.
Timeline
November 2026
- 4 commits pushed on
- @JoviDeCroock committed "Compare arguments by variable scope when merging fields and spreads"
- @JoviDeCroock committed "Tidy fragment variable data model in execution"
- @JoviDeCroock committed "Fix fragment argument example"
- @JoviDeCroock committed "Specify handling of fragment argument coercion errors"
- 4 commits pushed on
- @JoviDeCroock committed "Fix execution algorithms"
- @JoviDeCroock committed "Clarify nested variables and fragment argument positions"
- @JoviDeCroock committed "Editorial"
- @JoviDeCroock committed "Merge branch 'main' into fragment-args-2024-amendments"
September 2026
- @benjie committed "Merge branch 'main' into fragment-arguments" on
November 2025
- @JoviDeCroock committed "Merge pull request #2 from benjie/fragments-editorial" on
- 12 commits pushed on
- @benjie committed "{operation,fragment}-defined variable -> {operation,fragment} variable"
- @benjie committed "Editorial"
- @benjie committed "Correct algorithm and provide clarifying note"
- @benjie committed "Do not allow merging of fragments referencing different variables"
- @benjie committed "Split logic for fragment arguments from directive/field arguments"
- @benjie committed "Consistency"
- @benjie committed "Precision and clarity"
- @benjie committed "Add examples and clarify wording/algorithm"
- @benjie committed "Spec consistency"
- @benjie committed "Editorial"
- @benjie committed "Editorial"
- @benjie committed "Fix algorithm mistake"
- 2 commits pushed on
- @benjie committed "Merge branch 'main' into fragment-args-2024-amendments"
- @benjie committed "Add missing grammar"
October 2025
- @JoviDeCroock committed "Merge branch 'main' into fragment-args-2024-amendments" on
September 2025
- @JoviDeCroock committed "Merge branch 'main' into fragment-args-2024-amendments" on
July 2025
- 3 commits pushed on
- @JoviDeCroock committed "Fixes"
- @JoviDeCroock committed "Merge branch 'main' into fragment-args-2024-amendments"
- @JoviDeCroock committed "Formatting"
- @JoviDeCroock committed "Merge branch 'main' into fragment-args-2024-amendments" on
June 2025
- Top comment edited on by benjie
March 2025
- Advanced to RFC 2 on by leebyron
- On the agenda for GraphQL WG
15 listed attendees · 9 agenda items · 6 linked RFCs
- GraphQLConf WG sessions - call for opinions (5m, Benjie)
- Non-nullable includeDeprecated argument (5m, Martin) #1142
- GraphQL Open Telmetry Specification (5m, Pascal)
- Tone of voice (5m, Martin)
- Nullability Working Group status update (15m, Alex Reilly) SemanticNullability #1065
- Fragment-Arguments (10m, Jovi De Croock) #1081
- Forbid @skip and @include on subscription root selection (10m, Benjie) #860
- Let's cut a spec release... it's been 3+ years! (15m, Benjie)
- Defer/Stream updates (10m, Rob) DeferStream
February 2025
- @JoviDeCroock committed "Partial update, rest depends on https://github.com/graphql/graphql-sp…" on
October 2024
- Discussed in GraphQL WG
Needed by Yaacov, Rob and Benjie's various implementations of incremental delivery, and also by Jovi's fragment arguments PR
Meeting notes · GraphQL WG · 2024-10-03
September 2024
- @JoviDeCroock committed "update validation" on
August 2024
- @JoviDeCroock committed "Merge branch 'main' into fragment-args-2024-amendments" on
- On the agenda for GraphQL WG
3 listed attendees · 1 agenda item · 1 linked RFC
- Fragment arguments (10m, Jovi) #1081
June 2024
- @JoviDeCroock committed "Merge branch 'main' into fragment-args-2024-amendments" on
- @JoviDeCroock committed "formatting" on
- 2 commits pushed on
- @JoviDeCroock committed "wording"
- @JoviDeCroock committed "Merge branch 'main' into fragment-args-2024-amendments"
- @JoviDeCroock committed "Update spec/Section 5 -- Validation.md" on
- Advanced to RFC 1 on by leebyron
- On the agenda for GraphQL WG
9 listed attendees · 5 agenda items · 4 linked RFCs
- Editorial change to "composite" term (2m, Jovi)
- Editorial: show how the parts of a request are passed to ExecuteRequest (5m, Benjie)
- Move Fragment Arguments RFC to RFC2? (10m, Jovi) #1081
- Define data collections used in the spec (10m, Benjie) #1091 #1092 #1063
- Fix reference mistake in subscription execution (5m, Benjie)
- @JoviDeCroock committed "Update spec/Section 5 -- Validation.md" on
May 2024
- @JoviDeCroock committed "fix formatting" on
- @JoviDeCroock committed "Ensure variables are defined" on
- 5 commits pushed on
- @JoviDeCroock committed "Apply suggestions from code review"
- @JoviDeCroock committed "remove non standard hyphens"
- @JoviDeCroock committed "address redundant if"
- @JoviDeCroock committed "address logical or"
- @JoviDeCroock committed "clarify example"
March 2024
- 4 commits pushed on
- @JoviDeCroock committed "formatting and expand examples"
- @JoviDeCroock committed "add in undefined fragment"
- @JoviDeCroock committed "unset instead of null"
- @JoviDeCroock committed "shorten"
- 2 commits pushed on
- @JoviDeCroock committed "Apply suggestions from code review"
- @JoviDeCroock committed "Apply suggestions from code review"
- 2 commits pushed on
- @JoviDeCroock committed "Apply Benjie's suggestions"
- @JoviDeCroock committed "conciser validation"
- @JoviDeCroock committed "Remove unused `$__UNSET`" on
- Top comment edited on by JoviDeCroock
- 2 commits pushed on
- @JoviDeCroock committed "address validation comments"
- @JoviDeCroock committed "address language comments"
- Discussed in GraphQL WG
#1081 - Fragment arguments amendments
Meeting notes · GraphQL WG · 2024-03-07
February 2024
- @JoviDeCroock committed "Update spec/Section 2 -- Language.md" on
- Top comment edited on by JoviDeCroock
- Pull request created on by JoviDeCroock
- @JoviDeCroock committed "corrections" on
- @JoviDeCroock committed "wording" on
- 2 commits pushed on
- @JoviDeCroock committed "address https://github.com/graphql/graphql-js/pull/3835#discussion_r1…"
- @JoviDeCroock committed "wip"
January 2023
- @mjmahone committed "RFC: Fragment Arguments" on