Skip to content

Commit d441705

Browse files
committed
PWA-805: Expose localization system / store config from GraphQL
1 parent 6209cfb commit d441705

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/StoreGraphQl/Model/Resolver/AvailableStoresResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function resolve(
4141
array $value = null,
4242
array $args = null
4343
) {
44-
$storeGroupId = !empty($args['use_current_group']) ?
44+
$storeGroupId = !empty($args['useCurrentGroup']) ?
4545
(int)$context->getExtensionAttributes()->getStore()->getStoreGroupId() :
4646
null;
4747
return $this->storeConfigDataProvider->getAvailableStoreConfig(

app/code/Magento/StoreGraphQl/etc/schema.graphqls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
type Query {
44
storeConfig : StoreConfig @resolver(class: "Magento\\StoreGraphQl\\Model\\Resolver\\StoreConfigResolver") @doc(description: "The store config query") @cache(cacheable: false)
55
availableStores(
6-
use_current_group : Boolean @doc(description: "Get only store views from the current store group")
6+
useCurrentGroup: Boolean @doc(description: "Get only store views from the current store group")
77
): [StoreConfig] @resolver(class: "Magento\\StoreGraphQl\\Model\\Resolver\\AvailableStoresResolver") @doc(description: "Get a list of available store views and their config information.")
88
}
99

0 commit comments

Comments
 (0)