|
@@ 131-135 (lines=5) @@
|
| 128 |
|
$value[] = []; |
| 129 |
|
$index = count($value) - 1; |
| 130 |
|
|
| 131 |
|
if (in_array($outputType->getConfig()->getItem()->getKind(), [TypeMap::KIND_UNION, TypeMap::KIND_INTERFACE])) { |
| 132 |
|
$type = $outputType->getConfig()->getItemConfig()->resolveType($resolvedValueItem); |
| 133 |
|
} else { |
| 134 |
|
$type = $outputType; |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
$value[$index] = $this->processQueryFields($mutation, $type, $resolvedValueItem, $value[$index]); |
| 138 |
|
} |
|
@@ 326-329 (lines=4) @@
|
| 323 |
|
{ |
| 324 |
|
$resolvedValue = $field->getConfig()->resolve($contextValue, $this->parseArgumentsValues($field, $query)); |
| 325 |
|
|
| 326 |
|
if (in_array($field->getType()->getKind(), [TypeMap::KIND_UNION, TypeMap::KIND_INTERFACE])) { |
| 327 |
|
$resolvedType = $field->getType()->resolveType($resolvedValue); |
| 328 |
|
$field->setType($resolvedType); |
| 329 |
|
} |
| 330 |
|
|
| 331 |
|
return $resolvedValue; |
| 332 |
|
} |