src/LinkResolver.php
private function createIdChunks(array $resourceIds): array
    {
        $chunks = [];
        $chunkId = -1;
        $resourceIds = \array_values($resourceIds);
        foreach ($resourceIds as $index => $resourceId) {
            if (0 === $index % 30) {
                ++$chunkId;
                $chunks[$chunkId] = [];
            }

            $chunks[$chunkId][] = $resourceId;
        }

        return $chunks;
    }
private function createIdChunks(array $resourceIds): array
    {
        $chunks = [];
        $chunkId = -1;
        $resourceIds = \array_values($resourceIds);
        foreach ($resourceIds as $index => $resourceId) {
            if (0 === $index % 30) {
                ++$chunkId;
                $chunks[$chunkId] = [];
            }

            $chunks[$chunkId][] = $resourceId;
        }

        return $chunks;
    }
Each Contentful ID can be up to 64 characters long,
so if we have too many links in a single query it might create some queries
that are too long.

For this reason, we split the IDs into smaller chunks with at most 30 elements each,
so we're sure we stay under the 2000 characters per URL.

@param string[] $resourceIds

@return string[][]