Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
ENGCOM-1635: GraphQL - Added sort by options to Products GraphQL type #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Paliarush committed May 21, 2018
1 parent 2633e5a commit e1e3fc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/code/Magento/CatalogGraphQl/Model/Resolver/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ public function resolve(
'items' => $searchResult->getProductsSearchResult(),
'page_info' => [
'page_size' => $searchCriteria->getPageSize(),
'current_page' => $currentPage,
'sort_fields' => [],
'current_page' => $currentPage
],
'filters' => $this->filtersDataProvider->getData($layerType),
'filters' => $this->filtersDataProvider->getData($layerType)
];

$result = function () use ($data) {
Expand Down

0 comments on commit e1e3fc8

Please sign in to comment.