@@ -1306,20 +1306,22 @@ fragment resourceFragment on Resource {
1306
1306
- For each literal Input Value {value} in the document:
1307
1307
- Let {type} be the type expected in the position {value} is found.
1308
1308
- {value} must be coercible to {type} (with the assumption that any
1309
- {variableUsage} nested within {value} will represent a runtime value of the
1310
- referenced variable's type ).
1309
+ {variableUsage} nested within {value} will represent a runtime value
1310
+ suitable for usage in its position ).
1311
1311
1312
1312
** Explanatory Text**
1313
1313
1314
1314
Literal values must be compatible with the type expected in the position they
1315
- are found as per the coercion rules defined in the Type System chapter. Variable
1316
- values are handled by the rule
1317
- [ All Variable Usages Are Allowed] ( #sec-All-Variable-Usages-Are-Allowed ) .
1318
- {ListValue} and {ObjectValue} may nest additional Input Values, some of which
1319
- may be a {variableUsage}. Each nested {variableUsage} will be coerced during
1320
- execution - see [ Coercing Variable Values] ( #sec-Coercing-Variable-Values ) - thus
1321
- we assume their runtime value will coerce to the type of the referenced
1322
- variable.
1315
+ are found as per the coercion rules defined in the Type System chapter.
1316
+
1317
+ A {ListValue} or {ObjectValue} may nest additional Input Values, some of which
1318
+ may be a {variableUsage}. The
1319
+ [ All Variable Usages Are Allowed] ( #sec-All-Variable-Usages-Are-Allowed )
1320
+ validation rule asserts that each {variableUsage} is of a type allowed in that
1321
+ position, and the [ Coercing Variable Values] ( #sec-Coercing-Variable-Values )
1322
+ algorithm will ensure runtime values of these variables coerce correctly, thus
1323
+ we can assume the runtime value of each {variableUsage} will be suitable for
1324
+ usage in its position.
1323
1325
1324
1326
The type expected in a position includes the type defined by the argument a
1325
1327
value is provided for, the type defined by an input object field a value is
0 commit comments