app-search-magento icon indicating copy to clipboard operation
app-search-magento copied to clipboard

Not able search products graphql

Open haodv178 opened this issue 5 years ago • 0 comments

Precondition

  • Magento version 2.3.5

Steps to reproduce

  • Query graphql {products(search:"test"){total_count}}

Expected result

  • {"data":{"products":{"total_count": 0}}}

Actual result

{ "errors": [ { "debugMessage": "Argument 1 passed to Magento\CatalogGraphQl\Model\Resolver\Products\Query\Filter::getResult() must be of the type array, object given, called in /var/www/html/vendor/elastic/app-search-magento/src/module-catalog-graph-ql/Model/Resolver/Products/Query/Search.php on line 137", "message": "Internal server error", "extensions": { "category": "internal" }, "locations": [ { "line": 2, "column": 3 } ], "path": [ "products" ] } ], "data": { "products": null } }

haodv178 avatar May 27 '20 05:05 haodv178