@@ -2293,8 +2293,7 @@ non-leaf nodes within a _schema coordinate_ cannot be found in the {schema}.
2293
2293
TypeCoordinate : Name
2294
2294
2295
2295
1. Let {typeName } be the value of {Name }.
2296
- 2. Return the type in the {schema } named {typeName }, or {null } if no such type
2297
- exists .
2296
+ 2. Return the type in the {schema } named {typeName } if it exists .
2298
2297
2299
2298
MemberCoordinate : Name . Name
2300
2299
@@ -2304,16 +2303,13 @@ MemberCoordinate : Name . Name
2304
2303
Interface type .
2305
2304
4. If {type } is an Enum type :
2306
2305
1. Let {enumValueName } be the value of the second {Name }.
2307
- 2. Return the enum value of {type } named {enumValueName }, or {null } if no
2308
- such value exists .
2306
+ 2. Return the enum value of {type } named {enumValueName } if it exists .
2309
2307
5. Otherwise , if {type } is an Input Object type :
2310
2308
1. Let {inputFieldName } be the value of the second {Name }.
2311
- 2. Return the input field of {type } named {inputFieldName }, or {null } if no
2312
- such input field exists .
2309
+ 2. Return the input field of {type } named {inputFieldName } if it exists .
2313
2310
6. Otherwise :
2314
2311
1. Let {fieldName } be the value of the second {Name }.
2315
- 2. Return the field of {type } named {fieldName }, or {null } if no such field
2316
- exists .
2312
+ 2. Return the field of {type } named {fieldName } if it exists .
2317
2313
2318
2314
ArgumentCoordinate : Name . Name ( Name : )
2319
2315
@@ -2324,23 +2320,21 @@ ArgumentCoordinate : Name . Name ( Name : )
2324
2320
5. Let {field } be the field of {type } named {fieldName }.
2325
2321
6. Assert : {field } must exist .
2326
2322
7. Let {fieldArgumentName } be the value of the third {Name }.
2327
- 8. Return the argument of {field } named {fieldArgumentName }, or {null } if no
2328
- such argument exists .
2323
+ 8. Return the argument of {field } named {fieldArgumentName } if it exists .
2329
2324
2330
2325
DirectiveCoordinate : @ Name
2331
2326
2332
2327
1. Let {directiveName } be the value of {Name }.
2333
- 2. Return the directive in the {schema } named {directiveName }, or {null } if no
2334
- such directive exists .
2328
+ 2. Return the directive in the {schema } named {directiveName } if it exists .
2335
2329
2336
2330
DirectiveArgumentCoordinate : @ Name ( Name : )
2337
2331
2338
2332
1. Let {directiveName } be the value of the first {Name }.
2339
2333
2. Let {directive } be the directive in the {schema } named {directiveName }.
2340
2334
3. Assert : {directive } must exist .
2341
2335
4. Let {directiveArgumentName } be the value of the second {Name }.
2342
- 5. Return the argument of {directive } named {directiveArgumentName }, or { null }
2343
- if no such argument exists .
2336
+ 5. Return the argument of {directive } named {directiveArgumentName } if it
2337
+ exists .
2344
2338
2345
2339
**Examples **
2346
2340
0 commit comments