Skip to content

Commit 90a98ff

Browse files
ENGCOM-3457: GraphQL-215: Total pages field returns null in category query #219
- Merge Pull Request magento/graphql-ce#219 from ronak2ram/graphql-ce:Fixed-215 - Merged commits: 1. 76a7243
2 parents 9845b2b + 76a7243 commit 90a98ff

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)