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