src/Executor/Executor.php
protected static function executeOperation(ExecutionContext $context, $root, OperationDefinition $operation)
    {
        $type = self::getOperationRootType($context->schema, $operation);
        $fields = self::collectFields($context, $type, $operation->get('selectionSet'), new \ArrayObject(), new \ArrayObject());
        if ($operation->get('operation') === 'mutation') {
            return self::executeFieldsSerially($context, $type, $root, $fields->getArrayCopy());
        }

        return self::executeFields($context, $type, $root, $fields);
    }
protected static function executeOperation(ExecutionContext $context, $root, OperationDefinition $operation)
    {
        $type = self::getOperationRootType($context->schema, $operation);
        $fields = self::collectFields($context, $type, $operation->get('selectionSet'), new \ArrayObject(), new \ArrayObject());
        if ($operation->get('operation') === 'mutation') {
            return self::executeFieldsSerially($context, $type, $root, $fields->getArrayCopy());
        }

        return self::executeFields($context, $type, $root, $fields);
    }
protected static function executeOperation ( ExecutionContext $ context , $ root , OperationDefinition $ operation ) { $ type = self :: getOperationRootType ( $ context -> schema , $ operation ) ; $ fields = self :: collectFields ( $ context , $ type , $ operation -> get ( 'selectionSet' ) , new \ ArrayObject ( ) , new \ ArrayObject ( ) ) ; if ( $ operation -> get ( 'operation' ) === 'mutation' ) { return self :: executeFieldsSerially ( $ context , $ type , $ root , $ fields -> getArrayCopy ( ) ) ; } return self :: executeFields ( $ context , $ type , $ root , $ fields ) ; }
Implements the "Evaluating operations" section of the spec.
Implements the Evaluating operations section of the spec .