You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add validation rule that operation types exist (#955)
* Add validation rule that operation types exist
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 working group meeting. See also
graphql/graphql-js#3592.
* prettier
* typofix
Co-authored-by: Benjie Gillam <[email protected]>
* indentation
Co-authored-by: Benjie Gillam <[email protected]>
* Add 5.2.4 Operation Type Configuration
* Update spec/Section 5 -- Validation.md
* Update spec/Section 5 -- Validation.md
* Update spec/Section 5 -- Validation.md
* Apply suggestions from code review
Co-authored-by: Benjie <[email protected]>
* Reformat
* Undo changes to Section 3
* Editorial
* Move Shane's content
* More editorial
* More editorial
* Update spec/Section 5 -- Validation.md
Co-authored-by: Shane Krueger <[email protected]>
* Update spec/Section 5 -- Validation.md
---------
Co-authored-by: Benjie Gillam <[email protected]>
Co-authored-by: Shane Krueger <[email protected]>
0 commit comments