fixed gql products language selection

This commit is contained in:
2021-06-02 12:40:46 +02:00
parent 11d781c646
commit 14169ab24a
5 changed files with 6 additions and 4 deletions

View File

@@ -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',