@@ 180-186 (lines=7) @@ | ||
177 | ||
178 | return $this->resolveScalar($targetField, $ast, $parentValue); |
|
179 | ||
180 | case TypeMap::KIND_OBJECT: |
|
181 | /** @var $type AbstractObjectType */ |
|
182 | if (!$ast instanceof AstQuery) { |
|
183 | throw new ResolveException(sprintf('You have to specify fields for "%s"', $ast->getName())); |
|
184 | } |
|
185 | ||
186 | return $this->resolveObject($targetField, $ast, $parentValue); |
|
187 | ||
188 | case TypeMap::KIND_LIST: |
|
189 | return $this->resolveList($targetField, $ast, $parentValue); |
|
@@ 192-197 (lines=6) @@ | ||
189 | return $this->resolveList($targetField, $ast, $parentValue); |
|
190 | ||
191 | case TypeMap::KIND_UNION: |
|
192 | case TypeMap::KIND_INTERFACE: |
|
193 | if (!$ast instanceof AstQuery) { |
|
194 | throw new ResolveException(sprintf('You have to specify fields for "%s"', $ast->getName())); |
|
195 | } |
|
196 | ||
197 | return $this->resolveComposite($targetField, $ast, $parentValue); |
|
198 | ||
199 | default: |
|
200 | throw new ResolveException(sprintf('Resolving type with kind "%s" not supported', $kind)); |