@@ -109,7 +109,7 @@ function resolveTypeCoordinate(
109
109
const typeName = schemaCoordinate . name . value ;
110
110
const type = schema . getType ( typeName ) ;
111
111
112
- // 2. Return the type in the {schema} named {typeName}, or {null} if no such type exists.
112
+ // 2. Return the type in the {schema} named {typeName} if it exists.
113
113
if ( type == null ) {
114
114
return ;
115
115
}
@@ -152,7 +152,7 @@ function resolveMemberCoordinate(
152
152
const enumValueName = schemaCoordinate . memberName . value ;
153
153
const enumValue = type . getValue ( enumValueName ) ;
154
154
155
- // 2. Return the enum value of {type} named {enumValueName}, or {null} if no such value exists.
155
+ // 2. Return the enum value of {type} named {enumValueName} if it exists.
156
156
if ( enumValue == null ) {
157
157
return ;
158
158
}
@@ -166,7 +166,7 @@ function resolveMemberCoordinate(
166
166
const inputFieldName = schemaCoordinate . memberName . value ;
167
167
const inputField = type . getFields ( ) [ inputFieldName ] ;
168
168
169
- // 2. Return the input field of {type} named {inputFieldName}, or {null} if no such input field exists.
169
+ // 2. Return the input field of {type} named {inputFieldName} if it exists.
170
170
if ( inputField == null ) {
171
171
return ;
172
172
}
@@ -179,7 +179,7 @@ function resolveMemberCoordinate(
179
179
const fieldName = schemaCoordinate . memberName . value ;
180
180
const field = schema . getField ( type , fieldName ) ;
181
181
182
- // 2. Return the field of {type} named {fieldName}, or {null} if no such field exists.
182
+ // 2. Return the field of {type} named {fieldName} if it exists.
183
183
if ( field == null ) {
184
184
return ;
185
185
}
@@ -229,7 +229,7 @@ function resolveArgumentCoordinate(
229
229
( arg ) => arg . name === fieldArgumentName ,
230
230
) ;
231
231
232
- // 8. Return the argument of {field} named {fieldArgumentName}, or {null} if no such argument exists.
232
+ // 8. Return the argument of {field} named {fieldArgumentName} if it exists.
233
233
if ( fieldArgument == null ) {
234
234
return ;
235
235
}
@@ -248,7 +248,7 @@ function resolveDirectiveCoordinate(
248
248
const directiveName = schemaCoordinate . name . value ;
249
249
const directive = schema . getDirective ( directiveName ) ;
250
250
251
- // 2. Return the directive in the {schema} named {directiveName}, or {null} if no such directive exists.
251
+ // 2. Return the directive in the {schema} named {directiveName} if it exists.
252
252
if ( ! directive ) {
253
253
return ;
254
254
}
@@ -283,7 +283,7 @@ function resolveDirectiveArgumentCoordinate(
283
283
( arg ) => arg . name === directiveArgumentName ,
284
284
) ;
285
285
286
- // 5. Return the argument of {directive} named {directiveArgumentName}, or {null} if no such argument exists.
286
+ // 5. Return the argument of {directive} named {directiveArgumentName} if it exists.
287
287
if ( ! directiveArgument ) {
288
288
return ;
289
289
}
0 commit comments