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