@@ -2217,9 +2217,7 @@ non-leaf nodes within a _schema coordinate_ cannot be found in the {schema}.
22172217SchemaCoordinate : Name
22182218
221922191. Let {typeName } be the value of {Name }.
2220- 2. Let {type } be the type in the {schema } named {typeName }.
2221- 3. If {type } does not exist , return {null }.
2222- 4. Return {type }.
2220+ 2. Return the type in the {schema } named {typeName }, or {null } if no such type exists .
22232221
22242222SchemaCoordinate : Name . Name
22252223
@@ -2228,20 +2226,14 @@ SchemaCoordinate : Name . Name
222822263. Assert : {type } must exist .
222922274. If {type } is an Enum type :
22302228 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 }.
2229+ 2. Return the enum value of {type } named {enumValueName }, or {null } if no such value exists .
223422305. Otherwise , if {type } is an Input Object type :
22352231 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 }.
2232+ 2. Return the input field of {type } named {inputFieldName }, or {null } if no such input field exists .
223922336. Otherwise :
22402234 1. Assert : {type } must be an Object or Interface type .
22412235 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 }.
2236+ 3. Return the field of {type } named {fieldName }, or {null } if no such field exists .
22452237
22462238SchemaCoordinate : Name . Name ( Name : )
22472239
@@ -2253,27 +2245,21 @@ SchemaCoordinate : Name . Name ( Name : )
225322456. Let {field } be the field of {type } named {fieldName }.
225422467. Assert : {field } must exist .
225522478. Let {fieldArgumentName } be the value of the third {Name }.
2256- 9. Let {fieldArgument } be the argument of {field } named {fieldArgumentName }.
2257- 10. If {fieldArgument } does not exist , return {null }.
2258- 11. Return {fieldArgument }.
2248+ 9. Return the argument of {field } named {fieldArgumentName }, or {null } if no such argument exists .
22592249
22602250SchemaCoordinate : @ Name
22612251
226222521. Let {directiveName } be the value of the first {Name }.
2263- 2. Let {directive } be the directive in the {schema } named {directiveName }.
2264- 3. If {directive } does not exist , return {null }.
2265- 4. Return {directive }.
2253+ 2. Return the directive in the {schema } named {directiveName }, or {null } if no such directive exists .
22662254
22672255SchemaCoordinate : @ Name ( Name : )
22682256
226922571. Let {directiveName } be the value of the first {Name }.
227022582. Let {directive } be the directive in the {schema } named {directiveName }.
227122593. Assert : {directive } must exist .
227222604. Let {directiveArgumentName } be the value of the second {Name }.
2273- 5. Let {directiveArgument } be the argument of {directive } named
2274- {directiveArgumentName }.
2275- 6. If {directiveArgument } does not exist , return {null }.
2276- 7. Return {directiveArgument }.
2261+ 5. Return the argument of {directive } named
2262+ {directiveArgumentName }, or {null } if no such argument exists .
22772263
22782264**Examples **
22792265
0 commit comments