Using the below code or equivelant I want to get all products regardless of visiblity or status etc. This however does not seem to return products that are "Not Visible Individually".
$category = $this->categoryFactory->create()->load($catid);
$collection = $this->_productCollectionFactory->create();
$collection->addAttributeToSelect('sku');
$collection->addCategoryFilter($category);
How can this be achieved?