I executed this query within a Checkout UI Extension with both network_access
and api_access
enabled. However, the response always returns shop name and metafield is null.
query @inContext(language: "EN", country: "UK") {
shop {
name
metafield(namespace: "test", key: "test") {
value
type
}
}
}
When defining this metafield in the shopify.extensions.toml file
, the data is retrieved successfully. However, it cannot accept parameters such as inContext when accessed via the Storefront Query API.