public function edgeResolver(LengthAwarePaginator $paginator): Collection
    {
        $firstItem = $paginator->firstItem();

        return $paginator->values()->map(function ($item, $index) use ($firstItem) {
            return [
                'cursor' => Cursor::encode($firstItem + $index),
                'node' => $item,
            ];
        });
    }