Skip to content

Commit c8a2cfe

Browse files
committed
Add back assertion
1 parent 8a97138 commit c8a2cfe

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

spec/Section 3 -- Type System.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,14 +2248,15 @@ SchemaCoordinate : Name . Name ( Name : )
22482248

22492249
1. Let {typeName} be the value of the first {Name}.
22502250
2. Let {type} be the type in the {schema} named {typeName}.
2251-
3. Assert {type} must be an Object or Interface type.
2252-
4. Let {fieldName} be the value of the second {Name}.
2253-
5. Let {field} be the field of {type} named {fieldName}.
2254-
6. Assert {field} must exist.
2255-
7. Let {fieldArgumentName} be the value of the third {Name}.
2256-
8. Let {fieldArgument} be the argument of {field} named {fieldArgumentName}.
2257-
9. If {fieldArgument} does not exist, return {void}.
2258-
10. Return {fieldArgument}.
2251+
3. Assert that {type} exists.
2252+
4. Assert {type} must be an Object or Interface type.
2253+
5. Let {fieldName} be the value of the second {Name}.
2254+
6. Let {field} be the field of {type} named {fieldName}.
2255+
7. Assert {field} must exist.
2256+
8. Let {fieldArgumentName} be the value of the third {Name}.
2257+
9. Let {fieldArgument} be the argument of {field} named {fieldArgumentName}.
2258+
10. If {fieldArgument} does not exist, return {void}.
2259+
11. Return {fieldArgument}.
22592260

22602261
SchemaCoordinate : @ Name
22612262

0 commit comments

Comments
 (0)