Skip to content

Commit 528b590

Browse files
committed
", or {null} if no such field exists." -> "if it exists."
1 parent 153b54f commit 528b590

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

spec/Section 3 -- Type System.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,8 +2293,7 @@ non-leaf nodes within a _schema coordinate_ cannot be found in the {schema}.
22932293
TypeCoordinate : Name
22942294

22952295
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.
22982297

22992298
MemberCoordinate : Name . Name
23002299

@@ -2304,16 +2303,13 @@ MemberCoordinate : Name . Name
23042303
Interface type.
23052304
4. If {type} is an Enum type:
23062305
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.
23092307
5. Otherwise, if {type} is an Input Object type:
23102308
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.
23132310
6. Otherwise:
23142311
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.
23172313

23182314
ArgumentCoordinate : Name . Name ( Name : )
23192315

@@ -2324,23 +2320,21 @@ ArgumentCoordinate : Name . Name ( Name : )
23242320
5. Let {field} be the field of {type} named {fieldName}.
23252321
6. Assert: {field} must exist.
23262322
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.
23292324

23302325
DirectiveCoordinate : @ Name
23312326

23322327
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.
23352329

23362330
DirectiveArgumentCoordinate : @ Name ( Name : )
23372331

23382332
1. Let {directiveName} be the value of the first {Name}.
23392333
2. Let {directive} be the directive in the {schema} named {directiveName}.
23402334
3. Assert: {directive} must exist.
23412335
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.
23442338

23452339
**Examples**
23462340

0 commit comments

Comments
 (0)