|
@@ -1298,6 +1298,7 @@ class MaterioSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|
|
->map('type', $builder->fromValue('commerce_product'))
|
|
|
// ->map('bundles', $builder->fromValue(['materiau']))
|
|
|
->map('id', $builder->fromArgument('id'))
|
|
|
+ ->map('language', $builder->fromArgument('lang'))
|
|
|
);
|
|
|
|
|
|
$registry->addFieldResolver('Query', 'products',
|
|
@@ -1305,6 +1306,7 @@ class MaterioSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|
|
->map('type', $builder->fromValue('commerce_product'))
|
|
|
// ->map('bundles', $builder->fromValue(['materiau']))
|
|
|
->map('ids', $builder->fromArgument('ids'))
|
|
|
+ ->map('language', $builder->fromArgument('lang'))
|
|
|
);
|
|
|
|
|
|
$registry->addFieldResolver('Product', 'id',
|