|
@@ 206-212 (lines=7) @@
|
| 203 |
|
|
| 204 |
|
return $this->resolveScalar($targetField, $ast, $parentValue); |
| 205 |
|
|
| 206 |
|
case TypeMap::KIND_OBJECT: |
| 207 |
|
/** @var $type AbstractObjectType */ |
| 208 |
|
if (!$ast instanceof AstQuery) { |
| 209 |
|
throw new ResolveException(sprintf('You have to specify fields for "%s"', $ast->getName()), $ast->getLocation()); |
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
return $this->resolveObject($targetField, $ast, $parentValue); |
| 213 |
|
|
| 214 |
|
case TypeMap::KIND_LIST: |
| 215 |
|
return $this->resolveList($targetField, $ast, $parentValue); |
|
@@ 218-223 (lines=6) @@
|
| 215 |
|
return $this->resolveList($targetField, $ast, $parentValue); |
| 216 |
|
|
| 217 |
|
case TypeMap::KIND_UNION: |
| 218 |
|
case TypeMap::KIND_INTERFACE: |
| 219 |
|
if (!$ast instanceof AstQuery) { |
| 220 |
|
throw new ResolveException(sprintf('You have to specify fields for "%s"', $ast->getName()), $ast->getLocation()); |
| 221 |
|
} |
| 222 |
|
|
| 223 |
|
return $this->resolveComposite($targetField, $ast, $parentValue); |
| 224 |
|
|
| 225 |
|
default: |
| 226 |
|
throw new ResolveException(sprintf('Resolving type with kind "%s" not supported', $kind)); |