From e1e3fc80ecafd79f8b1af097f8f17a1356d03c87 Mon Sep 17 00:00:00 2001 From: Alex Paliarush Date: Mon, 21 May 2018 10:58:19 -0500 Subject: [PATCH] ENGCOM-1635: GraphQL - Added sort by options to Products GraphQL type #12 --- app/code/Magento/CatalogGraphQl/Model/Resolver/Products.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/code/Magento/CatalogGraphQl/Model/Resolver/Products.php b/app/code/Magento/CatalogGraphQl/Model/Resolver/Products.php index 70c3f1c00b27..cc791ce780c1 100644 --- a/app/code/Magento/CatalogGraphQl/Model/Resolver/Products.php +++ b/app/code/Magento/CatalogGraphQl/Model/Resolver/Products.php @@ -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) {