@@ 107-111 (lines=5) @@ | ||
104 | $alias = $mutation->hasAlias() ? $mutation->getAlias() : $mutation->getName(); |
|
105 | $resolvedValue = $this->resolveValue($field, null, $mutation); |
|
106 | ||
107 | if (!$this->resolveValidator->validateResolvedValue($resolvedValue, $field->getType()->getKind())) { |
|
108 | $this->resolveValidator->addError(new ResolveException(sprintf('Not valid resolved value for mutation "%s"', $field->getType()->getName()))); |
|
109 | ||
110 | return [$alias => null]; |
|
111 | } |
|
112 | ||
113 | $value = null; |
|
114 | if ($mutation->hasFields()) { |
|
@@ 162-166 (lines=5) @@ | ||
159 | $resolvedValue = $this->resolveValue($field, $contextValue, $query); |
|
160 | $alias = $query->hasAlias() ? $query->getAlias() : $query->getName(); |
|
161 | ||
162 | if (!$this->resolveValidator->validateResolvedValue($resolvedValue, $field->getType()->getKind())) { |
|
163 | $this->resolveValidator->addError(new ResolveException(sprintf('Not valid resolved value for query "%s"', $field->getType()->getName()))); |
|
164 | ||
165 | return [$alias => null]; |
|
166 | } |
|
167 | ||
168 | $value = []; |
|
169 | if($resolvedValue){ |