Skip to content

Commit 8584fa3

Browse files
committed
condense assertion
1 parent b4f2515 commit 8584fa3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/Section 3 -- Type System.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,7 +2234,8 @@ MemberCoordinate : Name . Name
22342234

22352235
1. Let {typeName} be the value of the first {Name}.
22362236
2. Let {type} be the type in the {schema} named {typeName}.
2237-
3. Assert: {type} must exist.
2237+
3. Assert: {type} must exist, and must be an Enum, Input Object, Object or
2238+
Interface type.
22382239
4. If {type} is an Enum type:
22392240
1. Let {enumValueName} be the value of the second {Name}.
22402241
2. Return the enum value of {type} named {enumValueName}, or {null} if no
@@ -2244,9 +2245,8 @@ MemberCoordinate : Name . Name
22442245
2. Return the input field of {type} named {inputFieldName}, or {null} if no
22452246
such input field exists.
22462247
6. Otherwise:
2247-
1. Assert: {type} must be an Object or Interface type.
2248-
2. Let {fieldName} be the value of the second {Name}.
2249-
3. Return the field of {type} named {fieldName}, or {null} if no such field
2248+
1. Let {fieldName} be the value of the second {Name}.
2249+
2. Return the field of {type} named {fieldName}, or {null} if no such field
22502250
exists.
22512251

22522252
ArgumentCoordinate : Name . Name ( Name : )

0 commit comments

Comments
 (0)