@@ 194-200 (lines=7) @@ | ||
191 | ||
192 | return $this->resolveScalar($targetField, $ast, $parentValue); |
|
193 | ||
194 | case TypeMap::KIND_OBJECT: |
|
195 | /** @var $type AbstractObjectType */ |
|
196 | if (!$ast instanceof AstQuery) { |
|
197 | throw new ResolveException(sprintf('You have to specify fields for "%s"', $ast->getName()), $ast->getLocation()); |
|
198 | } |
|
199 | ||
200 | return $this->resolveObject($targetField, $ast, $parentValue); |
|
201 | ||
202 | case TypeMap::KIND_LIST: |
|
203 | return $this->resolveList($targetField, $ast, $parentValue); |
|
@@ 206-211 (lines=6) @@ | ||
203 | return $this->resolveList($targetField, $ast, $parentValue); |
|
204 | ||
205 | case TypeMap::KIND_UNION: |
|
206 | case TypeMap::KIND_INTERFACE: |
|
207 | if (!$ast instanceof AstQuery) { |
|
208 | throw new ResolveException(sprintf('You have to specify fields for "%s"', $ast->getName()), $ast->getLocation()); |
|
209 | } |
|
210 | ||
211 | return $this->resolveComposite($targetField, $ast, $parentValue); |
|
212 | ||
213 | default: |
|
214 | throw new ResolveException(sprintf('Resolving type with kind "%s" not supported', $kind)); |