|
@@ 144-150 (lines=7) @@
|
| 141 |
|
|
| 142 |
|
return $this->resolveScalar($targetField, $ast, $parentValue); |
| 143 |
|
|
| 144 |
|
case TypeMap::KIND_OBJECT: |
| 145 |
|
/** @var $type AbstractObjectType */ |
| 146 |
|
if (!$ast instanceof AstQuery) { |
| 147 |
|
throw new ResolveException(sprintf('You have to specify fields for "%s"', $ast->getName()), $ast->getLocation()); |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
return $this->resolveObject($targetField, $ast, $parentValue); |
| 151 |
|
|
| 152 |
|
case TypeMap::KIND_LIST: |
| 153 |
|
return $this->resolveList($targetField, $ast, $parentValue); |
|
@@ 156-161 (lines=6) @@
|
| 153 |
|
return $this->resolveList($targetField, $ast, $parentValue); |
| 154 |
|
|
| 155 |
|
case TypeMap::KIND_UNION: |
| 156 |
|
case TypeMap::KIND_INTERFACE: |
| 157 |
|
if (!$ast instanceof AstQuery) { |
| 158 |
|
throw new ResolveException(sprintf('You have to specify fields for "%s"', $ast->getName()), $ast->getLocation()); |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
return $this->resolveComposite($targetField, $ast, $parentValue); |
| 162 |
|
|
| 163 |
|
default: |
| 164 |
|
throw new ResolveException(sprintf('Resolving type with kind "%s" not supported', $kind)); |