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