@@ 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()) { |
|
@@ 163-167 (lines=5) @@ | ||
160 | $resolvedValue = $this->resolveValue($field, $contextValue, $query); |
|
161 | $alias = $query->hasAlias() ? $query->getAlias() : $query->getName(); |
|
162 | ||
163 | if (!$this->resolveValidator->validateResolvedValue($resolvedValue, $field->getType()->getKind())) { |
|
164 | $this->resolveValidator->addError(new ResolveException(sprintf('Not valid resolved value for query "%s"', $field->getType()->getName()))); |
|
165 | ||
166 | return [$alias => null]; |
|
167 | } |
|
168 | ||
169 | $value = []; |
|
170 | if($resolvedValue){ |