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