public function connectionFromArray(array $data, $args = []): ConnectionInterface
    {
        return $this->connectionFromArraySlice(
            $data,
            $args,
            [
                'sliceStart' => 0,
                'arrayLength' => \count($data),
            ]
        );
    }
public function connectionFromArray(array $data, $args = []): ConnectionInterface
    {
        return $this->connectionFromArraySlice(
            $data,
            $args,
            [
                'sliceStart' => 0,
                'arrayLength' => \count($data),
            ]
        );
    }
public function connectionFromArray ( array $ data , $ args = [ ] ) : ConnectionInterface { return $ this -> connectionFromArraySlice ( $ data , $ args , [ 'sliceStart' => 0 , 'arrayLength' => \ count ( $ data ) , ] ) ; }
A simple function that accepts an array and connection arguments, and returns
a connection object for use in GraphQL. It uses array offsets as pagination,
so pagination will only work if the array is static.

@param array          $data
@param array|Argument $args

@return ConnectionInterface
A simple function that accepts an array and connection arguments and returns a connection object for use in GraphQL . It uses array offsets as pagination so pagination will only work if the array is static .