for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digia\Lumen\GraphQL;
use Youshido\GraphQL\Relay\Connection\ArrayConnection as BaseArrayConnection;
class ArrayConnection extends BaseArrayConnection
{
/** @noinspection MoreThanThreeArgumentsInspection */
/**
* @param array $data
* @param array $args
* @param int $sliceStart
* @param int $arrayLength
*
* @return array
*/
public static function connectionFromArraySlice(array $data, array $args, $sliceStart, $arrayLength)
return array_merge(parent::connectionFromArraySlice($data, $args, $sliceStart, $arrayLength), [
'total' => $arrayLength,
]);
}