In this tutorial, Today I will explain how to get store’s theme configuration value using GraphQL in Magento 2.
Query a store’s theme configuration
The following query returns details about the store’s default title, keywords, and welcome text
Request:
1 2 3 4 5 6 7 8 |
storeConfig { default_title default_keywords welcome } } |
Response:
1 2 3 4 5 6 7 8 9 10 |
{ "data": { "storeConfig": { "default_title": "Magento Commerce", "default_keywords": null, "welcome": "Default welcome msg!" } } } |
Thank You!
Hit 5 Stars if you find this post helpful
0 (based on 0 Reviews)