@@ -2219,7 +2219,7 @@ SchemaCoordinate : Name
2219
2219
2220
2220
1. Let {typeName } be the value of the first {Name }.
2221
2221
2. Let {type } be the type in the {schema } named {typeName }.
2222
- 3. If {type } does not exist , return {void }.
2222
+ 3. If {type } does not exist , return {null }.
2223
2223
4. Return {type }.
2224
2224
2225
2225
SchemaCoordinate : Name . Name
@@ -2230,18 +2230,18 @@ SchemaCoordinate : Name . Name
2230
2230
4. If {type } is an Enum type :
2231
2231
5. Let {enumValueName } be the value of the second {Name }.
2232
2232
6. Let {enumValue } be the enum value of {type } named {enumValueName }.
2233
- 7. If {enumValue } does not exist , return {void }.
2233
+ 7. If {enumValue } does not exist , return {null }.
2234
2234
8. Return {enumValue }.
2235
2235
9. Otherwise if {type } is an Input Object type :
2236
2236
10. Let {inputFieldName } be the value of the second {Name }.
2237
2237
11. Let {inputField } be the input field of {type } named {inputFieldName }.
2238
- 12. If {inputField } does not exist , return {void }.
2238
+ 12. If {inputField } does not exist , return {null }.
2239
2239
13. Return {inputField }.
2240
2240
14. Otherwise :
2241
2241
15. Assert {type } must be an Object or Interface type .
2242
2242
16. Let {fieldName } be the value of the second {Name }.
2243
2243
17. Let {field } be the field of {type } named {fieldName }.
2244
- 18. If {field } does not exist , return {void }.
2244
+ 18. If {field } does not exist , return {null }.
2245
2245
19. Return {field }.
2246
2246
2247
2247
SchemaCoordinate : Name . Name ( Name : )
@@ -2255,14 +2255,14 @@ SchemaCoordinate : Name . Name ( Name : )
2255
2255
7. Assert {field } must exist .
2256
2256
8. Let {fieldArgumentName } be the value of the third {Name }.
2257
2257
9. Let {fieldArgument } be the argument of {field } named {fieldArgumentName }.
2258
- 10. If {fieldArgument } does not exist , return {void }.
2258
+ 10. If {fieldArgument } does not exist , return {null }.
2259
2259
11. Return {fieldArgument }.
2260
2260
2261
2261
SchemaCoordinate : @ Name
2262
2262
2263
2263
1. Let {directiveName } be the value of the first {Name }.
2264
2264
2. Let {directive } be the directive in the {schema } named {directiveName }.
2265
- 3. If {directive } does not exist , return {void }.
2265
+ 3. If {directive } does not exist , return {null }.
2266
2266
4. Return {directive }.
2267
2267
2268
2268
SchemaCoordinate : @ Name ( Name : )
@@ -2273,7 +2273,7 @@ SchemaCoordinate : @ Name ( Name : )
2273
2273
4. Let {directiveArgumentName } be the value of the second {Name }.
2274
2274
5. Let {directiveArgument } be the argument of {directive } named .
2275
2275
{directiveArgumentName }.
2276
- 6. If {directiveArgument } does not exist , return {void }.
2276
+ 6. If {directiveArgument } does not exist , return {null }.
2277
2277
7. Return {directiveArgument }.
2278
2278
2279
2279
**Examples **
0 commit comments