[{"data":1,"prerenderedAt":448},["ShallowReactive",2],{"navigation_docs":3,"-going-further-devtools":143,"-going-further-devtools-surround":443},[4,31,77,108],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":30},"Getting Started","i-lucide-play","\u002Fgetting-started","1.getting-started",[10,15,20,25],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-home",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-plug",{"title":21,"path":22,"stem":23,"icon":24},"Usage","\u002Fgetting-started\u002Fusage","1.getting-started\u002F3.usage","i-lucide-code",{"title":26,"path":27,"stem":28,"icon":29},"Editor","\u002Fgetting-started\u002Feditor","1.getting-started\u002F4.editor","i-lucide-wrench",false,{"title":32,"icon":33,"path":34,"stem":35,"children":36,"page":30},"Essentials","i-lucide-book","\u002Fessentials","2.essentials",[37,42,47,52,57,62,67,72],{"title":38,"path":39,"stem":40,"icon":41},"Setup Shopify","\u002Fessentials\u002Fsetup-shopify","2.essentials\u002F1.setup-shopify","i-lucide-shopping-bag",{"title":43,"path":44,"stem":45,"icon":46},"Module Config","\u002Fessentials\u002Fconfiguration","2.essentials\u002F2.configuration","i-lucide-anvil",{"title":48,"path":49,"stem":50,"icon":51},"Storefront API","\u002Fessentials\u002Fstorefront","2.essentials\u002F3.storefront","i-lucide-store",{"title":53,"path":54,"stem":55,"icon":56},"Customer API","\u002Fessentials\u002Fcustomer-account","2.essentials\u002F4.customer-account","i-lucide-user",{"title":58,"path":59,"stem":60,"icon":61},"Admin API","\u002Fessentials\u002Fadmin","2.essentials\u002F5.admin","i-lucide-shield",{"title":63,"path":64,"stem":65,"icon":66},"Error Handling","\u002Fessentials\u002Ferror-handling","2.essentials\u002F6.error-handling","i-lucide-bug",{"title":68,"path":69,"stem":70,"icon":71},"Caching","\u002Fessentials\u002Fcaching","2.essentials\u002F7.caching","i-lucide-rabbit",{"title":73,"path":74,"stem":75,"icon":76},"Analytics","\u002Fessentials\u002Fanalytics","2.essentials\u002F8.analytics","i-lucide-chart-line",{"title":78,"icon":79,"path":80,"stem":81,"children":82,"page":30},"Examples","i-lucide-chef-hat","\u002Fexamples","3.examples",[83,88,93,98,103],{"title":84,"path":85,"stem":86,"icon":87},"Navigation Menu","\u002Fexamples\u002Fnavigation-tree","3.examples\u002F1.navigation-tree","i-lucide-menu",{"title":89,"path":90,"stem":91,"icon":92},"Collection Page","\u002Fexamples\u002Fcollection-page","3.examples\u002F2.collection-page","i-lucide-group",{"title":94,"path":95,"stem":96,"icon":97},"Collection Filters","\u002Fexamples\u002Fcollection-filters","3.examples\u002F3.collection-filters","i-lucide-funnel",{"title":99,"path":100,"stem":101,"icon":102},"Product Page","\u002Fexamples\u002Fproduct-page","3.examples\u002F4.product-page","i-lucide-shirt",{"title":104,"path":105,"stem":106,"icon":107},"Using the Cart","\u002Fexamples\u002Fcart","3.examples\u002F5.cart","i-lucide-shopping-cart",{"title":109,"icon":110,"path":111,"stem":112,"children":113,"page":30},"Going Further","i-lucide-pickaxe","\u002Fgoing-further","4.going-further",[114,119,124,129,133,138],{"title":115,"path":116,"stem":117,"icon":118},"Hooks","\u002Fgoing-further\u002Fhooks","4.going-further\u002F1.hooks","i-lucide-between-horizontal-start",{"title":120,"path":121,"stem":122,"icon":123},"Codegen","\u002Fgoing-further\u002Fcodegen","4.going-further\u002F2.codegen","i-lucide-wand-sparkles",{"title":125,"path":126,"stem":127,"icon":128},"GraphQL Explorer","\u002Fgoing-further\u002Fexplorer","4.going-further\u002F3.explorer","i-lucide-app-window",{"title":130,"path":131,"stem":132,"icon":29},"DevTools","\u002Fgoing-further\u002Fdevtools","4.going-further\u002F4.devtools",{"title":134,"path":135,"stem":136,"icon":137},"Webhooks","\u002Fgoing-further\u002Fwebhooks","4.going-further\u002F5.webhooks","i-lucide-fishing-hook",{"title":139,"path":140,"stem":141,"icon":142},"Migrating to 2.0","\u002Fgoing-further\u002Fmigration","4.going-further\u002F6.migration","i-lucide-circle-arrow-up",{"id":144,"title":130,"body":145,"description":436,"extension":437,"links":438,"meta":439,"navigation":440,"path":131,"seo":441,"stem":132,"__hash__":442},"docs\u002F4.going-further\u002F4.devtools.md",{"type":146,"value":147,"toc":425},"minimark",[148,164,169,172,175,240,249,253,258,270,277,280,283,293,297,306,310,316,320,325,329,336,340,350,421],[149,150,151,152,156,157,163],"p",{},"The module adds a Shopify panel and its ",[153,154,155],"a",{"href":126},"GraphQL explorers"," to ",[153,158,162],{"href":159,"rel":160},"https:\u002F\u002Fnuxt.com\u002Fmodules\u002Fdevtools",[161],"nofollow","Nuxt DevTools",".\nYou find them in the Nuxt group of DevTools, under Modules.",[165,166,168],"h2",{"id":167},"requirements","Requirements",[149,170,171],{},"The Shopify panel needs Nuxt DevTools 4, which runs on Nuxt 4.5 or later.",[149,173,174],{},"By default, Nuxt 4 installs an older DevTools.\nOn Nuxt 4.5 or later, add DevTools 4 to your dev dependencies, and Nuxt loads it instead:",[176,177,178,207,224],"code-group",{},[179,180,186],"pre",{"className":181,"code":182,"filename":183,"language":184,"meta":185,"style":185},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install -D @nuxt\u002Fdevtools@4\n","npm","bash","",[187,188,189],"code",{"__ignoreMap":185},[190,191,194,197,201,204],"span",{"class":192,"line":193},"line",1,[190,195,183],{"class":196},"sBMFI",[190,198,200],{"class":199},"sfazB"," install",[190,202,203],{"class":199}," -D",[190,205,206],{"class":199}," @nuxt\u002Fdevtools@4\n",[179,208,211],{"className":181,"code":209,"filename":210,"language":184,"meta":185,"style":185},"pnpm add -D @nuxt\u002Fdevtools@4\n","pnpm",[187,212,213],{"__ignoreMap":185},[190,214,215,217,220,222],{"class":192,"line":193},[190,216,210],{"class":196},[190,218,219],{"class":199}," add",[190,221,203],{"class":199},[190,223,206],{"class":199},[179,225,228],{"className":181,"code":226,"filename":227,"language":184,"meta":185,"style":185},"bun add -D @nuxt\u002Fdevtools@4\n","bun",[187,229,230],{"__ignoreMap":185},[190,231,232,234,236,238],{"class":192,"line":193},[190,233,227],{"class":196},[190,235,219],{"class":199},[190,237,203],{"class":199},[190,239,206],{"class":199},[149,241,242,243,248],{},"See ",[153,244,247],{"href":245,"rel":246},"https:\u002F\u002Fnuxt.com\u002Fmodules\u002Fdevtools\u002Fupgrading-to-v4",[161],"Upgrading to v4"," for everything else that changes in DevTools 4.",[165,250,252],{"id":251},"the-shopify-panel","The Shopify panel",[254,255,257],"h3",{"id":256},"requests","Requests",[149,259,260,261,264,265,269],{},"The ",[262,263,257],"strong",{}," tab lists the last 100 requests of the module's clients during server-side rendering, in your server routes and in the browser.\nThe requests of the ",[153,266,268],{"href":267},"\u002Fessentials\u002Fstorefront#shopify-routes","Shopify routes",", such as adding to the cart, show up as server route requests.\nFor each request, it shows the time, the API, the operation, where it was sent from, whether it failed and how long it took.\nRequests from server-side rendering and the browser also show their page.",[149,271,272,273,276],{},"Click a request to see its query, its variables and the response.\nWhen Shopify sends errors or extensions, such as the query cost of the Admin API, you see them too.\n",[262,274,275],{},"Open in explorer"," opens the request in the explorer of its API, in a new browser tab, with its query and variables filled in.",[149,278,279],{},"When requests fail, the Requests tab and the Shopify entry in DevTools show how many in red.",[149,281,282],{},"The buttons above the table:",[284,285,286,290],"ul",{},[287,288,289],"li",{},"open the DevTools tab of each explorer,",[287,291,292],{},"clear the list.",[254,294,296],{"id":295},"operations","Operations",[149,298,260,299,301,302,305],{},[262,300,296],{}," tab lists the GraphQL queries and mutations that the ",[153,303,304],{"href":121},"type generation"," found, with their API, their type and their file.\nClick one to open it in your editor.\nWhen the types can't be generated, the tab shows why.",[254,307,309],{"id":308},"fragments","Fragments",[149,311,312,313,315],{},"When the type generation finds fragments, the ",[262,314,309],{}," tab lists them with their API and their file.\nClick one to open it in your editor.",[254,317,319],{"id":318},"config","Config",[149,321,260,322,324],{},[262,323,319],{}," tab shows the configuration the module uses, including the values from runtime config and environment variables.\nTokens, secrets, passwords and custom headers are hidden, and storage options only show their driver.",[165,326,328],{"id":327},"explorers","Explorers",[149,330,331,332,335],{},"Every enabled ",[153,333,334],{"href":126},"explorer"," also gets its own tab, so you can try queries without leaving DevTools.",[165,337,339],{"id":338},"turning-it-off","Turning it off",[149,341,342,343,156,346,349],{},"To leave the Shopify panel and the explorer tabs out of DevTools, set ",[187,344,345],{},"devtools",[187,347,348],{},"false",":",[179,351,356],{"className":352,"code":353,"filename":354,"language":355,"meta":185,"style":185},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n  shopify: {\n    devtools: false,\n  },\n})\n","nuxt.config.ts","ts",[187,357,358,379,391,406,412],{"__ignoreMap":185},[190,359,360,364,367,371,375],{"class":192,"line":193},[190,361,363],{"class":362},"s7zQu","export",[190,365,366],{"class":362}," default",[190,368,370],{"class":369},"s2Zo4"," defineNuxtConfig",[190,372,374],{"class":373},"sTEyZ","(",[190,376,378],{"class":377},"sMK4o","{\n",[190,380,382,386,388],{"class":192,"line":381},2,[190,383,385],{"class":384},"swJcz","  shopify",[190,387,349],{"class":377},[190,389,390],{"class":377}," {\n",[190,392,394,397,399,403],{"class":192,"line":393},3,[190,395,396],{"class":384},"    devtools",[190,398,349],{"class":377},[190,400,402],{"class":401},"sfNiH"," false",[190,404,405],{"class":377},",\n",[190,407,409],{"class":192,"line":408},4,[190,410,411],{"class":377},"  },\n",[190,413,415,418],{"class":192,"line":414},5,[190,416,417],{"class":377},"}",[190,419,420],{"class":373},")\n",[422,423,424],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":185,"searchDepth":381,"depth":381,"links":426},[427,428,434,435],{"id":167,"depth":381,"text":168},{"id":251,"depth":381,"text":252,"children":429},[430,431,432,433],{"id":256,"depth":393,"text":257},{"id":295,"depth":393,"text":296},{"id":308,"depth":393,"text":309},{"id":318,"depth":393,"text":319},{"id":327,"depth":381,"text":328},{"id":338,"depth":381,"text":339},"See your Shopify requests, your GraphQL operations and the module configuration in Nuxt DevTools","md",null,{},{"icon":29},{"title":130,"description":436},"qKZk8fGh8ppMUdGVL0Hmv3zOmEef8aaoRSWofbm11Sc",[444,446],{"title":125,"path":126,"stem":127,"description":445,"icon":128,"children":-1},"Exploring the Shopify APIs from your Nuxt dev server",{"title":134,"path":135,"stem":136,"description":447,"icon":137,"children":-1},"Using Webhooks with Shopify in Nuxt",1794937305052]