At a glance
- Project
- GraphQL Spec
- Identifier
- #955
- Stage
- RFC 3 / Accepted
- Champion
- @benjaminjkraft
- Updated
- 2025-06-26
- Latest activity
- Pull request merged on
- Source
- Pull request
Pull request description
Right now the spec says that, for example, if the schema does not define a mutation root type, then the schema does not support mutations. But there's no validation rule for it, which means that many parsers (including graphql-js) treat a mutation as valid against such a schema. (Indeed, many end up considering any mutation as valid, since they don't know what type to validate the root selection set against.) This commit adds a validation rule to make the schema text explicit.
Slated for discussion at the June 2 2022 working group meeting. Replaces #947. See also graphql/graphql-js#3592.
Update October 2024: this PR has been refreshed including changes proposed in #1098 and Benjie's editorial edits.
Fixes #1097
Timeline
June 2025
- Pull request merged on by leebyron
- Advanced to RFC 3 on by leebyron
- On the agenda for GraphQL WG
7 listed attendees · 10 agenda items · 10 linked RFCs
- RFC2: Schema coordinates (5m, Mark) #794
- Appendix C - specified definitions
- RFC2: Descriptions on executable definitions (5m, Stephen) #1170
- Editorial: Define "execution result" and "request error result" (5m, Rob)
- RFC1: Brushing off @deprecated on Objects (5m, Stephen) #997
- RFC2: Keep schema keyword if description exists (2m, Benjie) #1167
- RFC2: Data collections trilogy (2m, Benjie) #1102 #1092 #1063
- RFC2: Add validation rule that operation types exist (2m, Benjie) #955
- RFC1: Fix CoerceArgumentValues() hasValue (10m, Benjie) #1056
- RFC1: List coercion algorithm (10m, Benjie) #1058
December 2024
- Advanced to RFC 2 on by leebyron
- Discussed in GraphQL WG
RFC - promote to RFC 2?
Meeting notes · GraphQL WG · 2024-12-05
October 2024
- Top comment edited on by benjie
- 9 commits pushed on
- @benjie committed "Undo changes to Section 3"
- @benjie committed "Merge branch 'main' into operation-type-validation"
- @benjie committed "Editorial"
- @benjie committed "Merge remote-tracking branch 'Shane32/Shane32-patch-1' into operation…"
- @benjie committed "Move Shane's content"
- @benjie committed "More editorial"
- @benjie committed "More editorial"
- @benjie committed "Update spec/Section 5 -- Validation.md"
- @benjie committed "Update spec/Section 5 -- Validation.md"
- 2 commits pushed on
- @Shane32 committed "Merge branch 'main' into Shane32-patch-1"
- @Shane32 committed "Reformat"
June 2024
- @Shane32 committed "Apply suggestions from code review" on
May 2024
- 4 commits pushed on
- @Shane32 committed "Add 5.2.4 Operation Type Configuration"
- @Shane32 committed "Update spec/Section 5 -- Validation.md"
- @Shane32 committed "Update spec/Section 5 -- Validation.md"
- @Shane32 committed "Update spec/Section 5 -- Validation.md"
June 2022
- 2 commits pushed on
- @benjaminjkraft committed "typofix"
- @benjaminjkraft committed "indentation"
- Advanced to RFC 1 on by leebyron
- On the agenda for GraphQL WG
22 listed attendees · 14 agenda items · 7 linked RFCs
- Agree to Membership Agreement, Participation & Contribution Guidelines and Code of Conduct (1m, Lee)
- Introduction of attendees (5m, Lee)
- Determine volunteers for note taking (1m, Lee)
- Review agenda (2m, Lee)
- Review previous meeting's action items (5m, Lee)
- Proposal: Composite Schemas Working Group (10m, Benjie) CompositeSchemas
- add @experimental directive (20m, Martin)
- clarify root operation types (5m, Ben) #955
- CCN status update (10m, Alex Reilly) #895
- @oneOf update (20m, Benjie Gillam) #948 #825
- "Unions implementing interface" update (10m, Yaacov Rydzinski) #939
- "Unions of interfaces and/or unions" (15m, Yaacov Rydzinski) #950
- General spec issues (15m, Roman Ivantsov)
- Adding "meta" fields to SDL and introspection (15m, Ivan Goncharov)
- Pull request created on by benjaminjkraft
- Top comment edited on by benjaminjkraft
- 2 commits pushed on
- @benjaminjkraft committed "Add validation rule that operation types exist"
- @benjaminjkraft committed "prettier"