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 0095028 commit 9769418Copy full SHA for 9769418
app/code/Magento/GroupedProductGraphQl/Model/GroupedProductTypeResolver.php
@@ -8,7 +8,7 @@
8
namespace Magento\GroupedProductGraphQl\Model;
9
10
use Magento\Framework\GraphQl\Query\Resolver\TypeResolverInterface;
11
-
+use Magento\GroupedProduct\Model\Product\Type\Grouped as Type;
12
/**
13
* {@inheritdoc}
14
*/
@@ -19,7 +19,7 @@ class GroupedProductTypeResolver implements TypeResolverInterface
19
20
public function resolveType(array $data) : string
21
{
22
- if (isset($data['type_id']) && $data['type_id'] == 'grouped') {
+ if (isset($data['type_id']) && $data['type_id'] == Type::TYPE_CODE) {
23
return 'GroupedProduct';
24
}
25
return '';
0 commit comments