mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 06:16:05 +03:00
Add missing renaming in ReferenceExecutor
This commit is contained in:
parent
03c33c9dc2
commit
65a3a8d13e
@ -1235,20 +1235,20 @@ class ReferenceExecutor implements ExecutorImplementation
|
|||||||
* Implements the "Evaluating selection sets" section of the spec
|
* Implements the "Evaluating selection sets" section of the spec
|
||||||
* for "read" mode.
|
* for "read" mode.
|
||||||
*
|
*
|
||||||
* @param mixed|null $source
|
* @param mixed $rootValue
|
||||||
* @param mixed[] $path
|
* @param mixed[] $path
|
||||||
* @param ArrayObject $fields
|
* @param ArrayObject $fields
|
||||||
*
|
*
|
||||||
* @return Promise|stdClass|mixed[]
|
* @return Promise|stdClass|mixed[]
|
||||||
*/
|
*/
|
||||||
private function executeFields(ObjectType $parentType, $source, $path, $fields)
|
private function executeFields(ObjectType $parentType, $rootValue, $path, $fields)
|
||||||
{
|
{
|
||||||
$containsPromise = false;
|
$containsPromise = false;
|
||||||
$finalResults = [];
|
$finalResults = [];
|
||||||
foreach ($fields as $responseName => $fieldNodes) {
|
foreach ($fields as $responseName => $fieldNodes) {
|
||||||
$fieldPath = $path;
|
$fieldPath = $path;
|
||||||
$fieldPath[] = $responseName;
|
$fieldPath[] = $responseName;
|
||||||
$result = $this->resolveField($parentType, $source, $fieldNodes, $fieldPath);
|
$result = $this->resolveField($parentType, $rootValue, $fieldNodes, $fieldPath);
|
||||||
if ($result === self::$UNDEFINED) {
|
if ($result === self::$UNDEFINED) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user