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 1397b4f commit 5991e29Copy full SHA for 5991e29
app/code/Magento/BundleGraphQl/Model/BundleProductTypeResolver.php
@@ -6,17 +6,19 @@
6
7
namespace Magento\BundleGraphQl\Model;
8
9
+use Magento\Framework\GraphQl\Config\Data\TypeResolverInterface;
10
+
11
/**
12
* {@inheritdoc}
13
*/
-class BundleProductTypeResolver
14
+class BundleProductTypeResolver implements TypeResolverInterface
15
{
16
17
18
- public function resolveType($typeId)
19
+ public function resolveType(array $data)
20
- if ($typeId == 'bundle') {
21
+ if (isset($data['type_id']) && $data['type_id'] == 'bundle') {
22
return 'BundleProduct';
23
}
24
0 commit comments