File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,39 @@ extend type Dog {
129
129
130
130
## Operations
131
131
132
+ ### Operation Types
133
+
134
+ **Formal Specification **
135
+
136
+ - For each {operation } in the document .
137
+ - Let {operationType } be the type of {operation}
138
+ - Let {operationRootType } be the root type in {schema} for {operationType }.
139
+ - {operationRootType } must exist .
140
+
141
+ **Explanatory Text **
142
+
143
+ The root type for a given operation must be defined within the schema .
144
+
145
+ For example the following document is valid:
146
+
147
+ ```graphql example
148
+ query getDogName {
149
+ dog {
150
+ name
151
+ }
152
+ }
153
+ ```
154
+
155
+ While the following document is invalid:
156
+
157
+ ``` graphql counter-example
158
+ mutation getDogName {
159
+ dog {
160
+ name
161
+ }
162
+ }
163
+ ```
164
+
132
165
### Named Operation Definitions
133
166
134
167
#### Operation Name Uniqueness
You can’t perform that action at this time.
0 commit comments