Skip to content

Commit 17002d4

Browse files
magicmarkbenjie
andcommitted
Apply suggestions from code review
Co-authored-by: Benjie Gillam <[email protected]>
1 parent f994f99 commit 17002d4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spec/Section 3 -- Type System.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,10 @@ SchemaCoordinate: Name . Name
310310
4. Otherwise if {type} is an Input Object type:
311311
1. Let {inputFieldName} be the value of the second {Name}.
312312
2. Return the input field of {type} named {inputFieldName}.
313-
5. Otherwise {type} must be an Object or Interface type:
314-
1. Let {fieldName} be the value of the second {Name}.
315-
2. Return the field of {type} named {fieldName}.
313+
5. Otherwise:
314+
1. Assert: {type} must be an Object or Interface type.
315+
2. Let {fieldName} be the value of the second {Name}.
316+
3. Return the field of {type} named {fieldName}.
316317

317318
SchemaCoordinate: Name . Name ( Name : )
318319
1. Let {typeName} be the value of the first {Name}.
@@ -414,7 +415,7 @@ The following table demonstrates how to select various kinds of schema members:
414415
| `Address` | `Address` interface |
415416
| `Address.city` | `city` field on the `Address` interface |
416417
| `ReviewInput` | `ReviewInput` input object type |
417-
| `ReviewInput.author` | `author` field on the `ReviewInput` input object type |
418+
| `ReviewInput.author` | `author` input field on the `ReviewInput` input object type |
418419
| `Entity` | `Entity` union definition |
419420
| `DateTime` | Custom `DateTime` scalar type |
420421
| `String` | Built-in `String` scalar type |

0 commit comments

Comments
 (0)