We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ddd47e commit 327c603Copy full SHA for 327c603
app/code/Magento/CatalogGraphQl/Model/Resolver/Products.php
@@ -57,6 +57,9 @@ public function resolve(
57
array $value = null,
58
array $args = null
59
) {
60
+ if (isset($args['searchAllowed']) && $args['searchAllowed'] === false) {
61
+ throw new GraphQlInputException(__('Product search has been disabled.'));
62
+ }
63
if ($args['currentPage'] < 1) {
64
throw new GraphQlInputException(__('currentPage value must be greater than 0.'));
65
}
0 commit comments