We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7c99baa + de106e2 commit 008052eCopy full SHA for 008052e
app/code/Magento/CatalogGraphQl/Model/Resolver/Products/Attributes/Collection.php
@@ -46,6 +46,24 @@ public function getAttributes() : AttributeCollection
46
$this->collection = $this->collectionFactory->create();
47
$this->collection->addFieldToFilter('is_user_defined', '1');
48
$this->collection->addFieldToFilter('attribute_code', ['neq' => 'cost']);
49
+ $this->collection->addFieldToFilter(
50
+ [
51
+ 'is_comparable',
52
+ 'is_filterable',
53
+ 'is_filterable_in_search',
54
+ 'is_visible_on_front',
55
+ 'used_in_product_listing',
56
+ 'used_for_sort_by'
57
+ ],
58
59
+ ['eq' => '1'],
60
61
62
63
64
+ ['eq' => '1']
65
+ ]
66
+ );
67
}
68
69
return $this->collection->load();
0 commit comments