We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423939c commit 0ac4bb1Copy full SHA for 0ac4bb1
app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ProductSearch.php
@@ -110,7 +110,7 @@ public function getList(
110
$searchResults = $this->searchResultsFactory->create();
111
$searchResults->setSearchCriteria($searchCriteriaForCollection);
112
$searchResults->setItems($collection->getItems());
113
- $searchResults->setTotalCount($collection->getSize());
+ $searchResults->setTotalCount($searchResult->getTotalCount());
114
return $searchResults;
115
}
116
0 commit comments