Skip to content

Commit 76a7243

Browse files
committed
Fixed - Total pages field returns null in category query
1 parent f710f9b commit 76a7243

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Resolver/Category

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Category/Products.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public function resolve(
9292
'items' => $searchResult->getProductsSearchResult(),
9393
'page_info' => [
9494
'page_size' => $searchCriteria->getPageSize(),
95-
'current_page' => $currentPage
95+
'current_page' => $currentPage,
96+
'total_pages' => $maxPages
9697
]
9798
];
9899
return $data;

0 commit comments

Comments
 (0)