Skip to content

Commit 4b9f37a

Browse files
authored
Various stylistic fixes
1 parent 10742dd commit 4b9f37a

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

spec/Section 3 -- Type System.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,7 +2200,7 @@ _schema coordinate_ as stated above.
22002200

22012201
Note: A {SchemaCoordinate} is not a definition within a GraphQL {Document}, but
22022202
a separate standalone grammar, intended to be used by tools to reference types,
2203-
fields, and other *schema element*s. Examples include: as references within
2203+
fields, and other _schema element_. Examples include: references within
22042204
documentation to refer to types and fields in a schema, a lookup key that can be
22052205
used in logging tools to track how often particular fields are queried in
22062206
production.
@@ -2211,7 +2211,7 @@ To refer to a _schema element_, a _schema coordinate_ must be interpreted in the
22112211
context of a GraphQL {schema}.
22122212

22132213
If the _schema element_ cannot be found, the resolve function will not yield a
2214-
value (without raising an error). However, an error **will** be raised if any
2214+
value (without raising an error). However, an error will be raised if any
22152215
non-leaf nodes within a _schema coordinate_ cannot be found in the {schema}.
22162216

22172217
SchemaCoordinate : Name
@@ -2225,33 +2225,33 @@ SchemaCoordinate : Name . Name
22252225

22262226
1. Let {typeName} be the value of the first {Name}.
22272227
2. Let {type} be the type in the {schema} named {typeName}.
2228-
3. Assert {type} must exist.
2228+
3. Assert: {type} must exist.
22292229
4. If {type} is an Enum type:
2230-
5. Let {enumValueName} be the value of the second {Name}.
2231-
6. Let {enumValue} be the enum value of {type} named {enumValueName}.
2232-
7. If {enumValue} does not exist, return {null}.
2233-
8. Return {enumValue}.
2234-
9. Otherwise if {type} is an Input Object type:
2235-
10. Let {inputFieldName} be the value of the second {Name}.
2236-
11. Let {inputField} be the input field of {type} named {inputFieldName}.
2237-
12. If {inputField} does not exist, return {null}.
2238-
13. Return {inputField}.
2239-
14. Otherwise:
2240-
15. Assert {type} must be an Object or Interface type.
2241-
16. Let {fieldName} be the value of the second {Name}.
2242-
17. Let {field} be the field of {type} named {fieldName}.
2243-
18. If {field} does not exist, return {null}.
2244-
19. Return {field}.
2230+
1. Let {enumValueName} be the value of the second {Name}.
2231+
2. Let {enumValue} be the enum value of {type} named {enumValueName}.
2232+
3. If {enumValue} does not exist, return {null}.
2233+
4. Return {enumValue}.
2234+
5. Otherwise, if {type} is an Input Object type:
2235+
1. Let {inputFieldName} be the value of the second {Name}.
2236+
2. Let {inputField} be the input field of {type} named {inputFieldName}.
2237+
3. If {inputField} does not exist, return {null}.
2238+
4. Return {inputField}.
2239+
6. Otherwise:
2240+
1. Assert: {type} must be an Object or Interface type.
2241+
2. Let {fieldName} be the value of the second {Name}.
2242+
3. Let {field} be the field of {type} named {fieldName}.
2243+
4. If {field} does not exist, return {null}.
2244+
5. Return {field}.
22452245

22462246
SchemaCoordinate : Name . Name ( Name : )
22472247

22482248
1. Let {typeName} be the value of the first {Name}.
22492249
2. Let {type} be the type in the {schema} named {typeName}.
2250-
3. Assert {type} must exist.
2251-
4. Assert {type} must be an Object or Interface type.
2250+
3. Assert: {type} must exist.
2251+
4. Assert: {type} must be an Object or Interface type.
22522252
5. Let {fieldName} be the value of the second {Name}.
22532253
6. Let {field} be the field of {type} named {fieldName}.
2254-
7. Assert {field} must exist.
2254+
7. Assert: {field} must exist.
22552255
8. Let {fieldArgumentName} be the value of the third {Name}.
22562256
9. Let {fieldArgument} be the argument of {field} named {fieldArgumentName}.
22572257
10. If {fieldArgument} does not exist, return {null}.
@@ -2268,9 +2268,9 @@ SchemaCoordinate : @ Name ( Name : )
22682268

22692269
1. Let {directiveName} be the value of the first {Name}.
22702270
2. Let {directive} be the directive in the {schema} named {directiveName}.
2271-
3. Assert {directive} must exist.
2271+
3. Assert: {directive} must exist.
22722272
4. Let {directiveArgumentName} be the value of the second {Name}.
2273-
5. Let {directiveArgument} be the argument of {directive} named.
2273+
5. Let {directiveArgument} be the argument of {directive} named
22742274
{directiveArgumentName}.
22752275
6. If {directiveArgument} does not exist, return {null}.
22762276
7. Return {directiveArgument}.

0 commit comments

Comments
 (0)