{"id":301173,"date":"2021-08-18T14:51:00","date_gmt":"2021-08-18T14:51:00","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=301173"},"modified":"2022-01-13T07:01:34","modified_gmt":"2022-01-13T07:01:34","slug":"how-to-fetch-system-configuration-value-using-graphql-in-magento2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/","title":{"rendered":"How to fetch system configuration value using graphQl in magento2?"},"content":{"rendered":"\n<p><strong>GraphQl<\/strong> is a query language and we can also fetch the data from our module by adding the custom query. First, We need to set the endpoint by entering http:\/\/&lt;magento2-server-path&gt;\/graphql in the URL bar of IDE or extension.<\/p>\n\n\n\n<p>To fetch the data from store configuration using a custom module and <a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/graphql\/\" target=\"_blank\" rel=\"noreferrer noopener\">graphql<\/a> then we need to follow these steps. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Define the configuration field in the di.xml file<\/li><li>Create the schema.graphqls file, to make a custom query<\/li><\/ol>\n\n\n\n<p>Let&#8217;s see with a practical approach<\/p>\n\n\n\n<p><strong>Step 1. <\/strong>First <a href=\"https:\/\/webkul.com\/blog\/create-hello-module-in-magento2\/\" target=\"_blank\" rel=\"noreferrer noopener\">Create the Module<\/a>,  Add the registration file <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\\Magento\\Framework\\Component\\ComponentRegistrar::register(\n\t\\Magento\\Framework\\Component\\ComponentRegistrar::MODULE,\n\t&#039;Webkul_Custom&#039;,\n\t__DIR__\n);<\/pre>\n\n\n\n<p><strong>Step 2.<\/strong> Add the module.xml file<\/p>\n\n\n\n<p>File: etc\/module.xml<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:Module\/etc\/module.xsd&quot;&gt;\n    &lt;module name=&quot;Webkul_Custom&quot;&gt;\n    &lt;\/module&gt;\n&lt;\/config&gt;<\/pre>\n\n\n\n<p><strong>Step 3.<\/strong> Add the system.xml file to add configuration in the module, We are fetching the same value from the module<\/p>\n\n\n\n<p>File: etc\/adminhtml\/system.xml<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:module:Magento_Config:etc\/system_file.xsd&quot;&gt;\n    &lt;system&gt;\n        &lt;tab id=&quot;webkul&quot; translate=&quot;label&quot; sortOrder=&quot;10&quot;&gt;\n            &lt;label&gt;Webkul&lt;\/label&gt;\n        &lt;\/tab&gt;\n        &lt;section id=&quot;custom&quot; translate=&quot;label&quot; sortOrder=&quot;130&quot; showInDefault=&quot;1&quot; showInWebsite=&quot;1&quot; showInStore=&quot;1&quot;&gt;\n            &lt;class&gt;separator-top&lt;\/class&gt;\n            &lt;label&gt;Custom Module&lt;\/label&gt;\n            &lt;tab&gt;webkul&lt;\/tab&gt;\n            &lt;resource&gt;Webkul_Custom::module_config&lt;\/resource&gt;\n            &lt;group id=&quot;general&quot; translate=&quot;label&quot; type=&quot;text&quot; sortOrder=&quot;10&quot; showInDefault=&quot;1&quot; showInWebsite=&quot;0&quot; showInStore=&quot;0&quot;&gt;\n                &lt;label&gt;General Configuration&lt;\/label&gt;\n                &lt;field id=&quot;enable&quot; translate=&quot;label&quot; type=&quot;select&quot; sortOrder=&quot;1&quot; showInDefault=&quot;1&quot; showInWebsite=&quot;0&quot; showInStore=&quot;0&quot;&gt;\n                    &lt;label&gt;Module Enable&lt;\/label&gt;\n                    &lt;source_model&gt;Magento\\Config\\Model\\Config\\Source\\Yesno&lt;\/source_model&gt;\n                &lt;\/field&gt;\n                &lt;field id=&quot;custom_message&quot; translate=&quot;label&quot; type=&quot;text&quot; sortOrder=&quot;1&quot; showInDefault=&quot;1&quot; showInWebsite=&quot;0&quot; showInStore=&quot;0&quot;&gt;\n                    &lt;label&gt;Add Message&lt;\/label&gt;\n                &lt;\/field&gt;\n            &lt;\/group&gt;\n        &lt;\/section&gt;\n    &lt;\/system&gt;\n&lt;\/config&gt;<\/pre>\n\n\n\n<p>S<strong>tep<\/strong> <strong>4<\/strong>. Define the configuration field in the di.xml file<\/p>\n\n\n\n<p>File: etc\/graphql\/di.xml<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot; ?&gt;\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:ObjectManager\/etc\/config.xsd&quot;&gt;\n&lt;type name=&quot;Magento\\StoreGraphQl\\Model\\Resolver\\Store\\StoreConfigDataProvider&quot;&gt;\n    &lt;arguments&gt;\n        &lt;argument name=&quot;extendedConfigData&quot;&gt;\n            &lt;item name=&quot;custom_general_enable&quot; xsi:type=&quot;string&quot;&gt;custom\/general\/enable&lt;\/item&gt;\n            &lt;item name=&quot;custom_general_custom_message&quot; xsi:type=&quot;string&quot;&gt;custom\/general\/custom_message&lt;\/item&gt;\n        &lt;\/argument&gt;\n    &lt;\/arguments&gt;\n&lt;\/type&gt;\n&lt;\/config&gt;<\/pre>\n\n\n\n<p>Here, It will be the path of field: section\/group\/field<\/p>\n\n\n\n<p><strong>Step 5.<\/strong> Create the <strong>schema.graphqls<\/strong> file, to make a custom query<\/p>\n\n\n\n<p>File: etc\/schema.graphqls<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">type StoreConfig {\n    custom_general_enable  : String  @doc(description: &quot;To check module enable or disable&quot;) ,\n    custom_general_custom_message: String @doc(description: &quot;To fetch custom text message&quot;)\n}<\/pre>\n\n\n\n<p>We can write our custom query in this way on ChromeiQl.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">{\n  storeConfig{\n    custom_general_enable\n    custom_general_custom_message\n  }\n}<\/pre>\n\n\n\n<p>We can get results in this way. If we enable the module then we get 1 otherwise 0 or in the second field we get a value that is saved by the user from the graphql query. It is a simple input field.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">{\n  &quot;data&quot;: {\n    &quot;storeConfig&quot;: {\n      &quot;custom_general_enable&quot;: &quot;1&quot;,\n      &quot;custom_general_custom_message&quot;: &quot;Hello Webkul&quot;\n    }\n  }\n}<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1-1200x224.png\" alt=\"GraphQl Query\" class=\"wp-image-301268\" width=\"988\" height=\"184\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1-1200x224.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1-300x56.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1-250x47.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1-768x144.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1.png 1278w\" sizes=\"(max-width: 988px) 100vw, 988px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>We can add the ChromeiQL in the chrome browser by clicking on this <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/chromeiql\/fkkiamalmpiidkljmicmjfbieiclmeij?hl=en\">Link<\/a>. by using the same process, we can get any system configuration value from the module and we can also get the result of the configuration as per the above image.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GraphQl is a query language and we can also fetch the data from our module by adding the custom query. First, We need to set the endpoint by entering http:\/\/&lt;magento2-server-path&gt;\/graphql in the URL bar of IDE or extension. To fetch the data from store configuration using a custom module and graphql then we need to <a href=\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":380,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-301173","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to fetch system configuration value using graphQl in magento2? -<\/title>\n<meta name=\"description\" content=\"Check how to write a custom query using graphql in magento2, Set the graphql endpoint, run the query, API vs GraphQl , Data query language\" \/>\n<meta name=\"robots\" content=\"index, nofollow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to fetch system configuration value using graphQl in magento2? -\" \/>\n<meta property=\"og:description\" content=\"Check how to write a custom query using graphql in magento2, Set the graphql endpoint, run the query, API vs GraphQl , Data query language\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-18T14:51:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-13T07:01:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1-1200x224.png\" \/>\n<meta name=\"author\" content=\"Abhay Agarwal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhay Agarwal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/\"},\"author\":{\"name\":\"Abhay Agarwal\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/800bad9503e85bd99c82926e3f42a26b\"},\"headline\":\"How to fetch system configuration value using graphQl in magento2?\",\"datePublished\":\"2021-08-18T14:51:00+00:00\",\"dateModified\":\"2022-01-13T07:01:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/\"},\"wordCount\":280,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1-1200x224.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/\",\"name\":\"How to fetch system configuration value using graphQl in magento2? -\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1-1200x224.png\",\"datePublished\":\"2021-08-18T14:51:00+00:00\",\"dateModified\":\"2022-01-13T07:01:34+00:00\",\"description\":\"Check how to write a custom query using graphql in magento2, Set the graphql endpoint, run the query, API vs GraphQl , Data query language\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1.png\",\"width\":1278,\"height\":239,\"caption\":\"graphql-1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to fetch system configuration value using graphQl in magento2?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/800bad9503e85bd99c82926e3f42a26b\",\"name\":\"Abhay Agarwal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5da1752d83e7445fe7bdfb877e5f33197590a84ec18f06578a3034de6b3eac1c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5da1752d83e7445fe7bdfb877e5f33197590a84ec18f06578a3034de6b3eac1c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Abhay Agarwal\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/abhay-agarwal447\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to fetch system configuration value using graphQl in magento2? -","description":"Check how to write a custom query using graphql in magento2, Set the graphql endpoint, run the query, API vs GraphQl , Data query language","robots":{"index":"index","follow":"nofollow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/","og_locale":"en_US","og_type":"article","og_title":"How to fetch system configuration value using graphQl in magento2? -","og_description":"Check how to write a custom query using graphql in magento2, Set the graphql endpoint, run the query, API vs GraphQl , Data query language","og_url":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2021-08-18T14:51:00+00:00","article_modified_time":"2022-01-13T07:01:34+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1-1200x224.png","type":"","width":"","height":""}],"author":"Abhay Agarwal","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Abhay Agarwal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/"},"author":{"name":"Abhay Agarwal","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/800bad9503e85bd99c82926e3f42a26b"},"headline":"How to fetch system configuration value using graphQl in magento2?","datePublished":"2021-08-18T14:51:00+00:00","dateModified":"2022-01-13T07:01:34+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/"},"wordCount":280,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1-1200x224.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/","url":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/","name":"How to fetch system configuration value using graphQl in magento2? -","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1-1200x224.png","datePublished":"2021-08-18T14:51:00+00:00","dateModified":"2022-01-13T07:01:34+00:00","description":"Check how to write a custom query using graphql in magento2, Set the graphql endpoint, run the query, API vs GraphQl , Data query language","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/graphql-1.png","width":1278,"height":239,"caption":"graphql-1"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-fetch-system-configuration-value-using-graphql-in-magento2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to fetch system configuration value using graphQl in magento2?"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/800bad9503e85bd99c82926e3f42a26b","name":"Abhay Agarwal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5da1752d83e7445fe7bdfb877e5f33197590a84ec18f06578a3034de6b3eac1c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5da1752d83e7445fe7bdfb877e5f33197590a84ec18f06578a3034de6b3eac1c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Abhay Agarwal"},"url":"https:\/\/webkul.com\/blog\/author\/abhay-agarwal447\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/301173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/380"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=301173"}],"version-history":[{"count":28,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/301173\/revisions"}],"predecessor-version":[{"id":319545,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/301173\/revisions\/319545"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=301173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=301173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=301173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}