App reviews, troubleshooting, and recommendations
Hello,
I have a custom metafield of type "Money" set on my market; it's called import_fees.
This is a GraphQL query that I'm attempting to use to fetch it
query GetMarketByGeography($countryCode: CountryCode!) { marketByGeography(countryCode: $countryCode) { import_fees: metafield(namespace: "my_namespace", key: "import_fees") { value } }
When I run the GraphQL query, what I get is a JSON string as a value:
{ "data": { "marketByGeography": { "import_fees": { "value": "{\"amount\":\"3.00\",\"currency_code\":\"EUR\"}" },
... }
Maybe I'm missing something, but is there a way to parse this Money object inside the query?
I'm not looking forward to parsing this after running the query!
Thanks for any insight (I'm a newcomer to this Shopify environment).
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024