Skip to content

Commit 7714c41

Browse files
magicmarkbenjie
authored andcommitted
Apply suggestions from code review
Co-authored-by: Benjie Gillam <[email protected]>
1 parent 12d7e9e commit 7714c41

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
@@ -279,9 +279,10 @@ SchemaCoordinate: Name . Name
279279
4. Otherwise if {type} is an Input Object type:
280280
1. Let {inputFieldName} be the value of the second {Name}.
281281
2. Return the input field of {type} named {inputFieldName}.
282-
5. Otherwise {type} must be an Object or Interface type:
283-
1. Let {fieldName} be the value of the second {Name}.
284-
2. Return the field of {type} named {fieldName}.
282+
5. Otherwise:
283+
1. Assert: {type} must be an Object or Interface type.
284+
2. Let {fieldName} be the value of the second {Name}.
285+
3. Return the field of {type} named {fieldName}.
285286

286287
SchemaCoordinate: Name . Name ( Name : )
287288
1. Let {typeName} be the value of the first {Name}.
@@ -383,7 +384,7 @@ The following table demonstrates how to select various kinds of schema members:
383384
| `Address` | `Address` interface |
384385
| `Address.city` | `city` field on the `Address` interface |
385386
| `ReviewInput` | `ReviewInput` input object type |
386-
| `ReviewInput.author` | `author` field on the `ReviewInput` input object type |
387+
| `ReviewInput.author` | `author` input field on the `ReviewInput` input object type |
387388
| `Entity` | `Entity` union definition |
388389
| `DateTime` | Custom `DateTime` scalar type |
389390
| `String` | Built-in `String` scalar type |

0 commit comments

Comments
 (0)