@@ -2200,7 +2200,7 @@ _schema coordinate_ as stated above.
2200
2200
2201
2201
Note : A {SchemaCoordinate } is not a definition within a GraphQL {Document }, but
2202
2202
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
2204
2204
documentation to refer to types and fields in a schema , a lookup key that can be
2205
2205
used in logging tools to track how often particular fields are queried in
2206
2206
production .
@@ -2211,7 +2211,7 @@ To refer to a _schema element_, a _schema coordinate_ must be interpreted in the
2211
2211
context of a GraphQL {schema }.
2212
2212
2213
2213
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
2215
2215
non -leaf nodes within a _schema coordinate_ cannot be found in the {schema }.
2216
2216
2217
2217
SchemaCoordinate : Name
@@ -2225,33 +2225,33 @@ SchemaCoordinate : Name . Name
2225
2225
2226
2226
1. Let {typeName } be the value of the first {Name }.
2227
2227
2. Let {type } be the type in the {schema } named {typeName }.
2228
- 3. Assert {type } must exist .
2228
+ 3. Assert : {type } must exist .
2229
2229
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 }.
2245
2245
2246
2246
SchemaCoordinate : Name . Name ( Name : )
2247
2247
2248
2248
1. Let {typeName } be the value of the first {Name }.
2249
2249
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 .
2252
2252
5. Let {fieldName } be the value of the second {Name }.
2253
2253
6. Let {field } be the field of {type } named {fieldName }.
2254
- 7. Assert {field } must exist .
2254
+ 7. Assert : {field } must exist .
2255
2255
8. Let {fieldArgumentName } be the value of the third {Name }.
2256
2256
9. Let {fieldArgument } be the argument of {field } named {fieldArgumentName }.
2257
2257
10. If {fieldArgument } does not exist , return {null }.
@@ -2268,9 +2268,9 @@ SchemaCoordinate : @ Name ( Name : )
2268
2268
2269
2269
1. Let {directiveName } be the value of the first {Name }.
2270
2270
2. Let {directive } be the directive in the {schema } named {directiveName }.
2271
- 3. Assert {directive } must exist .
2271
+ 3. Assert : {directive } must exist .
2272
2272
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
2274
2274
{directiveArgumentName }.
2275
2275
6. If {directiveArgument } does not exist , return {null }.
2276
2276
7. Return {directiveArgument }.
0 commit comments