How to get store's default language with GraphQL

Solved
mtonev
Tourist
7 0 2

Hi,

How can I get the store's default language with GraphQL? (the one that is displayed here: https://xxxxxxxxxxxxx.myshopify.com/admin/settings/languages)

Thanks in advance for your answer!

0 Likes
miguelcosta
New Member
1 1 1

This is an accepted solution.

I know this is a late reply,
but for future reference, the answer is here:
https://shopify.dev/tutorials/manage-shop-locales-with-admin-api#retrieve-a-shops-locales

In short, to get the default language use the QueryRoot.shopLocales and make sure to collect the primary field.

hope it helps.
cheers

mtonev
Tourist
7 0 2

Thank you for your answer

0 Likes