File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ function validateRootTypes(context: SchemaValidationContext): void {
145
145
) ;
146
146
}
147
147
148
- if ( queryType && mutationType && queryType . name === mutationType . name ) {
148
+ if ( queryType && mutationType && queryType === mutationType ) {
149
149
context . reportError (
150
150
'All root types must be different, ' +
151
151
queryType . name +
@@ -155,11 +155,7 @@ function validateRootTypes(context: SchemaValidationContext): void {
155
155
) ;
156
156
}
157
157
158
- if (
159
- queryType &&
160
- subscriptionType &&
161
- queryType . name === subscriptionType . name
162
- ) {
158
+ if ( queryType && subscriptionType && queryType === subscriptionType ) {
163
159
context . reportError (
164
160
'All root types must be different, ' +
165
161
queryType . name +
@@ -169,11 +165,7 @@ function validateRootTypes(context: SchemaValidationContext): void {
169
165
) ;
170
166
}
171
167
172
- if (
173
- mutationType &&
174
- subscriptionType &&
175
- mutationType . name === subscriptionType . name
176
- ) {
168
+ if ( mutationType && subscriptionType && mutationType === subscriptionType ) {
177
169
context . reportError (
178
170
'All root types must be different, ' +
179
171
mutationType . name +
You can’t perform that action at this time.
0 commit comments