|
@@ 179-183 (lines=5) @@
|
| 176 |
|
|
| 177 |
|
$resolvedValue = $this->resolveValue($field, null, $mutation); |
| 178 |
|
|
| 179 |
|
if (!$this->resolveValidator->validateResolvedValue($resolvedValue, $field->getType())) { |
| 180 |
|
$this->resolveValidator->addError(new ResolveException(sprintf('Not valid resolved value for mutation "%s"', $field->getType()->getName()))); |
| 181 |
|
|
| 182 |
|
return [$alias => null]; |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
$value = $resolvedValue; |
| 186 |
|
if ($mutation->hasFields()) { |
|
@@ 280-284 (lines=5) @@
|
| 277 |
|
return $resolvedValue; |
| 278 |
|
} |
| 279 |
|
|
| 280 |
|
if (!$this->resolveValidator->validateResolvedValue($resolvedValue, $field->getType())) { |
| 281 |
|
$this->resolveValidator->addError(new ResolveException(sprintf('Not valid resolved value for query "%s"', $field->getType()->getName()))); |
| 282 |
|
|
| 283 |
|
return null; |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
return $this->collectListOrSingleValue($field->getType(), $resolvedValue, $query); |
| 287 |
|
} |