Skip to content

Commit 11b9e96

Browse files
committed
void -> null
1 parent 9feceb2 commit 11b9e96

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/Section 3 -- Type System.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,7 +2219,7 @@ SchemaCoordinate : Name
22192219

22202220
1. Let {typeName} be the value of the first {Name}.
22212221
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}.
22232223
4. Return {type}.
22242224

22252225
SchemaCoordinate : Name . Name
@@ -2230,18 +2230,18 @@ SchemaCoordinate : Name . Name
22302230
4. If {type} is an Enum type:
22312231
5. Let {enumValueName} be the value of the second {Name}.
22322232
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}.
22342234
8. Return {enumValue}.
22352235
9. Otherwise if {type} is an Input Object type:
22362236
10. Let {inputFieldName} be the value of the second {Name}.
22372237
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}.
22392239
13. Return {inputField}.
22402240
14. Otherwise:
22412241
15. Assert {type} must be an Object or Interface type.
22422242
16. Let {fieldName} be the value of the second {Name}.
22432243
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}.
22452245
19. Return {field}.
22462246

22472247
SchemaCoordinate : Name . Name ( Name : )
@@ -2255,14 +2255,14 @@ SchemaCoordinate : Name . Name ( Name : )
22552255
7. Assert {field} must exist.
22562256
8. Let {fieldArgumentName} be the value of the third {Name}.
22572257
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}.
22592259
11. Return {fieldArgument}.
22602260

22612261
SchemaCoordinate : @ Name
22622262

22632263
1. Let {directiveName} be the value of the first {Name}.
22642264
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}.
22662266
4. Return {directive}.
22672267

22682268
SchemaCoordinate : @ Name ( Name : )
@@ -2273,7 +2273,7 @@ SchemaCoordinate : @ Name ( Name : )
22732273
4. Let {directiveArgumentName} be the value of the second {Name}.
22742274
5. Let {directiveArgument} be the argument of {directive} named.
22752275
{directiveArgumentName}.
2276-
6. If {directiveArgument} does not exist, return {void}.
2276+
6. If {directiveArgument} does not exist, return {null}.
22772277
7. Return {directiveArgument}.
22782278

22792279
**Examples**

0 commit comments

Comments
 (0)