Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit e1e3fc8

Browse files
author
Alex Paliarush
committed
ENGCOM-1635: GraphQL - Added sort by options to Products GraphQL type #12
1 parent 2633e5a commit e1e3fc8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,9 @@ public function resolve(
123123
'items' => $searchResult->getProductsSearchResult(),
124124
'page_info' => [
125125
'page_size' => $searchCriteria->getPageSize(),
126-
'current_page' => $currentPage,
127-
'sort_fields' => [],
126+
'current_page' => $currentPage
128127
],
129-
'filters' => $this->filtersDataProvider->getData($layerType),
128+
'filters' => $this->filtersDataProvider->getData($layerType)
130129
];
131130

132131
$result = function () use ($data) {

0 commit comments

Comments
 (0)