@@ -2200,7 +2200,7 @@ _schema coordinate_ as stated above.
22002200
22012201Note : A {SchemaCoordinate } is not a definition within a GraphQL {Document }, but
22022202a 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
22042204documentation to refer to types and fields in a schema , a lookup key that can be
22052205used in logging tools to track how often particular fields are queried in
22062206production .
@@ -2211,7 +2211,7 @@ To refer to a _schema element_, a _schema coordinate_ must be interpreted in the
22112211context of a GraphQL {schema }.
22122212
22132213If 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
22152215non -leaf nodes within a _schema coordinate_ cannot be found in the {schema }.
22162216
22172217SchemaCoordinate : Name
@@ -2225,33 +2225,33 @@ SchemaCoordinate : Name . Name
22252225
222622261. Let {typeName } be the value of the first {Name }.
222722272. Let {type } be the type in the {schema } named {typeName }.
2228- 3. Assert {type } must exist .
2228+ 3. Assert : {type } must exist .
222922294. 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
22462246SchemaCoordinate : Name . Name ( Name : )
22472247
224822481. Let {typeName } be the value of the first {Name }.
224922492. 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 .
225222525. Let {fieldName } be the value of the second {Name }.
225322536. Let {field } be the field of {type } named {fieldName }.
2254- 7. Assert {field } must exist .
2254+ 7. Assert : {field } must exist .
225522558. Let {fieldArgumentName } be the value of the third {Name }.
225622569. Let {fieldArgument } be the argument of {field } named {fieldArgumentName }.
2257225710. If {fieldArgument } does not exist , return {null }.
@@ -2268,9 +2268,9 @@ SchemaCoordinate : @ Name ( Name : )
22682268
226922691. Let {directiveName } be the value of the first {Name }.
227022702. Let {directive } be the directive in the {schema } named {directiveName }.
2271- 3. Assert {directive } must exist .
2271+ 3. Assert : {directive } must exist .
227222724. 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 }.
227522756. If {directiveArgument } does not exist , return {null }.
227622767. Return {directiveArgument }.
0 commit comments