Learn how to use tags to manage your subgraph endpoints.
Deployments vs. tags
Every subgraph you push to Goldsky has two kinds of endpoints:
Deployment: a specific, immutable version of a subgraph, identified by name/version (for example, poap-subgraph/1.0.0). Each goldsky subgraph deploy creates a new deployment.
Tag: a mutable, named alias that points at a deployment (for example, prod → poap-subgraph/2.0.0). Tags give you a stable GraphQL endpoint that you can repoint to a new version without changing your application code.
You can list each independently with the Goldsky CLI:
goldsky subgraph list --filter deployments # only version deploymentsgoldsky subgraph list --filter tags # only tagsgoldsky subgraph list # both
If --filter deployments returns no results but you know you have subgraphs in your project, they may have been published only through tags (for example, via a CI workflow that tags on deploy). Run goldsky subgraph list with no filter to see everything, or --filter tags to inspect tagged endpoints.
Create a tag
First, create a tag using the Goldsky CLI and associate it with your subgraph.
goldsky subgraph tag create subgraph/1.0.0 --tag prod
We’ve now created a new tag called prod. Now our GraphQL endpoint will use the word prod instead of the version number. You should see the new GraphQL endpoint listed in your terminal after running the command.Let’s say you’ve upgraded your poap-subgraph to version 2.0.0 and want to start querying it with your prod GraphQL endpoint. It’s as simple as creating the tag again on the new version.
goldsky subgraph tag create subgraph/2.0.0 --tag prod
Like before, you should see the GraphQL endpoint after running this command, and it should be the same as before. Your queries are now routed to the 2.0.0 version of the subgraph, with no change on your end.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Goldsky","colors":{"primary":"#F24B13","light":"#FE6C3C","dark":"#F24B13"},"logo":{"light":"https://mintcdn.com/goldsky-38/ji0yCkCfylVYRAVB/images/logo/light.svg?fit=max\u0026auto=format\u0026n=ji0yCkCfylVYRAVB\u0026q=85\u0026s=a5f82383787205b368a99af88dc7536e","dark":"https://mintcdn.com/goldsky-38/ji0yCkCfylVYRAVB/images/logo/dark.svg?fit=max\u0026auto=format\u0026n=ji0yCkCfylVYRAVB\u0026q=85\u0026s=d0291d9445301cfe0e12d6bccebd76c0","href":"/introduction"},"favicon":"https://mintcdn.com/goldsky-38/ji0yCkCfylVYRAVB/images/favicon.svg?fit=max\u0026auto=format\u0026n=ji0yCkCfylVYRAVB\u0026q=85\u0026s=b1885abf9abeb800a2df8eeba09cf484","api":{"playground":{}},"appearance":{"default":"dark","strict":false},"background":{"color":{"light":"#FFFFFF","dark":"#090B0C"}},"navbar":{"primary":{"type":"button","label":"Open app","href":"https://app.goldsky.com/"}},"footer":{"socials":{"twitter":"https://twitter.com/goldskyio","linkedin":"https://www.linkedin.com/company/76612907","github":"https://github.com/goldsky-io/documentation-examples"}},"seo":{"metatags":{"og:site_name":"Goldsky Documentation","twitter:card":"summary_large_image","twitter:site":"@goldskyio","twitter:creator":"@goldskyio","msvalidate.01":"ACCFDAF535E366D076B974FC456A5E23"},"indexing":"navigable"},"fonts":{"body":{"family":"Inter"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"dark","latex":false},"integrations":{"ga4":{"measurementId":"G-EWJVB03QZV"},"posthog":{"apiKey":"phc_xnF1pd8YYevvkU72QMBo7tj0L8HZ85GPqUxfH3LjkvY","apiHost":"https://us.i.posthog.com"}},"contextual":{"options":["copy","view","assistant","download-spec"],"display":"header"},"thumbnails":{"appearance":"light","background":"https://mintcdn.com/goldsky-38/btZ7fHJ4AzpW9VsW/images/og/waves-1.png?fit=max\u0026auto=format\u0026n=btZ7fHJ4AzpW9VsW\u0026q=85\u0026s=f1549f9490ef128fa88580ce21b46212"},"navigation":{"global":{"anchors":[{"anchor":"Pricing","icon":"tag","href":"https://goldsky.com/pricing"},{"anchor":"Products","icon":"layers","href":"https://goldsky.com/products/turbo-pipelines"},{"anchor":"Solutions","icon":"compass","href":"https://goldsky.com/solutions/reconciliation"},{"anchor":"Comparisons","icon":"scale","href":"https://goldsky.com/compare/the-graph"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"goldsky-38","hasAudioNarration":false,"actualSubdomain":"goldsky-38","customDomains":["docs.goldsky.com"],"gitSource":{"type":"github","owner":"goldsky-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false,"contextualFeedback":{"allowEmail":true},"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b055a7a371c191c3d4c36c5","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Chains","count":160},{"language":"default","tag":"Overview","count":116},{"language":"default","tag":"Turbo","count":113},{"language":"default","tag":"Other networks","count":108},{"language":"default","tag":"API reference","count":87},{"language":"default","tag":"Reference","count":80},{"language":"default","tag":"Edge RPC","count":69},{"language":"default","tag":"Compose","count":61},{"language":"default","tag":"Methods","count":55},{"language":"default","tag":"Partners","count":42}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@goldsky.com"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"::selection{background:rgba(255, 173, 51, 0.28)}a.card,a[class*=\"card\"]{transition:border-color 0.15s ease}a.card:hover,a[class*=\"card\"]:hover{border-color:rgba(255, 173, 51, 0.45)}.card:hover,a[class*=\"card\"]:hover{transform:none;box-shadow:none}#content-area table th,#content-area table td{padding-top:0.45rem;padding-bottom:0.45rem}*{scrollbar-width:thin;scrollbar-color:rgba(161, 161, 170, 0.35) transparent}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-thumb{background:rgba(161, 161, 170, 0.35);border-radius:999px}*::-webkit-scrollbar-thumb:hover{background:rgba(255, 173, 51, 0.55)}*::-webkit-scrollbar-track{background:transparent}:root{--gsk-ink: #111827;--gsk-body: #4b5563;--gsk-sub: #6b7280;--gsk-card: #ffffff;--gsk-panel: #fcfcfb;--gsk-code: #f6f6f5;--gsk-hair: rgba(17, 24, 39, 0.12);--gsk-edge: rgba(17, 24, 39, 0.2);--gsk-wire: #94a3b8;--gsk-on-accent: #ffffff;--gsk-gold: #d97706;--gsk-green: #059669;--gsk-cyan: #0e7490;--gsk-blue: #2563eb;--gsk-purple: #7c3aed;--gsk-red: #dc2626;--gsk-gray: #6b7280}:root.dark{--gsk-ink: #f4f4f5;--gsk-body: #d4d4d8;--gsk-sub: #a1a1aa;--gsk-card: rgba(255, 255, 255, 0.03);--gsk-panel: rgba(255, 255, 255, 0.03);--gsk-code: rgba(255, 255, 255, 0.06);--gsk-hair: rgba(255, 255, 255, 0.1);--gsk-edge: rgba(255, 255, 255, 0.18);--gsk-wire: #52525b;--gsk-on-accent: #1c1033;--gsk-gold: #ffad33;--gsk-green: #34d399;--gsk-cyan: #22d3ee;--gsk-blue: #60a5fa;--gsk-purple: #a78bfa;--gsk-red: #f87171;--gsk-gray: #a1a1aa}img[src*=\"/product-icons/\"]{object-position:-999px 0;background-color:currentColor!important;-webkit-mask:var(--icon) center / contain no-repeat;mask:var(--icon) center / contain no-repeat}img[src$=\"/product-icons/pipelines.svg\"]{--icon: url(\"/images/product-icons/pipelines.svg\")}img[src$=\"/product-icons/edge.svg\"]{--icon: url(\"/images/product-icons/edge.svg\")}img[src$=\"/product-icons/boost.svg\"]{--icon: url(\"/images/product-icons/boost.svg\")}img[src$=\"/product-icons/feeds.svg\"]{--icon: url(\"/images/product-icons/feeds.svg\")}img[src$=\"/product-icons/compose.svg\"]{--icon: url(\"/images/product-icons/compose.svg\")}img[src$=\"/product-icons/subgraphs.svg\"]{--icon: url(\"/images/product-icons/subgraphs.svg\")}@media (min-width: 1024px){#navbar.is-not-custom>.max-w-8xl,#navbar.is-not-custom~#body-content{max-width:none;padding-left:24px;padding-right:24px}}@media (min-width: 1280px){#navbar.is-not-custom.is-not-wide~#body-content #content-container{max-width:none;padding-right:0}#navbar.is-not-custom.is-not-wide~#body-content #content-area{max-width:672px;margin-left:auto;margin-right:auto}}#navbar .topbar-right-container #theme-preference-menu-trigger{order:-1}#theme-preference-menu-trigger{background-color:transparent}#topbar-cta-button svg{display:none}#topbar-cta-button a{padding-left:12px;padding-right:10px}#topbar-cta-button a>div::after{content:\"\";width:1rem;height:1rem;background-color:rgb(255 255 255 / 0.9);-webkit-mask:var(--arrow-up-right) center / contain no-repeat;mask:var(--arrow-up-right) center / contain no-repeat;--arrow-up-right: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M18 15V6M18 6H9M18 6L6.25 17.75' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")}#sidebar-content .sidebar-group-header,#navbar .nav-tabs-item{gap:6px}[role=\"menu\"]{box-shadow:0 12px 32px -4px rgb(0 0 0 / 0.12),\n 0 4px 8px -2px rgb(0 0 0 / 0.06)!important}:root.dark [role=\"menu\"]{box-shadow:0 12px 32px -4px rgb(0 0 0 / 0.6),\n 0 4px 8px -2px rgb(0 0 0 / 0.4)!important}@media (min-width: 1024px){#navbar div:has(>#search-bar-entry){justify-content:center}#navbar #search-bar-entry{flex:none;width:208px}}"}]}
{"page":{"pagePath":"subgraphs/tags","slug":"/subgraphs/tags","pageMetadata":{"title":"Subgraph tags","og:title":"Subgraph tags - Goldsky Docs","description":"Learn how to use tags to manage your subgraph endpoints.","checked":"2026-01-01T00:00:00.000Z","check_by":"hemanth","public":true,"href":"/subgraphs/tags"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how to use tags to manage your subgraph endpoints.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`deployments-vs-tags`,children:`Deployments vs. tags`}),`\n`,_jsx(_components.p,{children:`Every subgraph you push to Goldsky has two kinds of endpoints:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Deployment`}),`: a specific, immutable version of a subgraph, identified by `,_jsx(_components.code,{children:`name/version`}),` (for example, `,_jsx(_components.code,{children:`poap-subgraph/1.0.0`}),`). Each `,_jsx(_components.code,{children:`goldsky subgraph deploy`}),` creates a new deployment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tag`}),`: a mutable, named alias that points at a deployment (for example, `,_jsx(_components.code,{children:`prod`}),` → `,_jsx(_components.code,{children:`poap-subgraph/2.0.0`}),`). Tags give you a stable GraphQL endpoint that you can repoint to a new version without changing your application code.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`You can list each independently with the Goldsky CLI:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`goldsky`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` subgraph`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` list`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --filter`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` deployments`}),_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:` # only version deployments`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`goldsky`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` subgraph`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` list`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --filter`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` tags`}),_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:` # only tags`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`goldsky`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` subgraph`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` list`}),_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:` # both`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`--filter deployments`}),` returns no results but you know you have subgraphs in your project, they may have been published only through tags (for example, via a CI workflow that tags on deploy). Run `,_jsx(_components.code,{children:`goldsky subgraph list`}),` with no filter to see everything, or `,_jsx(_components.code,{children:`--filter tags`}),` to inspect tagged endpoints.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-tag`,children:`Create a tag`}),`\n`,_jsx(_components.p,{children:`First, create a tag using the Goldsky CLI and associate it with your subgraph.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`goldsky`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` subgraph`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` tag`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` create`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` subgraph/1.0.0`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --tag`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` prod`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`We’ve now created a new tag called `,_jsx(_components.code,{children:`prod`}),`. Now our GraphQL endpoint will use the word `,_jsx(_components.code,{children:`prod`}),` instead of the version number. You should see the new GraphQL endpoint listed in your terminal after running the command.`]}),`\n`,_jsxs(_components.p,{children:[`Let’s say you’ve upgraded your `,_jsx(_components.code,{children:`poap-subgraph`}),` to version `,_jsx(_components.code,{children:`2.0.0`}),` and want to start querying it with your `,_jsx(_components.code,{children:`prod`}),` GraphQL endpoint. It’s as simple as creating the tag again on the new version.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`goldsky`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` subgraph`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` tag`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` create`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` subgraph/2.0.0`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --tag`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` prod`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Like before, you should see the GraphQL endpoint after running this command, and it should be the same as before. Your queries are now routed to the `,_jsx(_components.code,{children:`2.0.0`}),` version of the subgraph, with no change on your end.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Subgraph tags","og:title":"Subgraph tags - Goldsky Docs","description":"Learn how to use tags to manage your subgraph endpoints.","checked":"2026-01-01T00:00:00.000Z","check_by":"hemanth","public":true,"href":"/subgraphs/tags"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Deployments vs. tags","slug":"deployments-vs-tags","depth":2,"children":[]},{"title":"Create a tag","slug":"create-a-tag","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/goldsky-38/306527d152e1badc/theme-toggle.js","/_mintlify/custom/goldsky-38/891a1a67c6bbc696/attribution.js"],"subdomain":"goldsky-38","siteName":"Goldsky","title":"Subgraph tags - Goldsky Docs","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-09T00:28:53.646Z","originalFileLocation":"subgraphs/tags.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how to use tags to manage your subgraph endpoints.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Goldsky\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Subgraph tags - Goldsky Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to use tags to manage your subgraph endpoints.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Goldsky Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.goldsky.com/subgraphs/tags\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://goldsky-38.mintlify.site/_mintlify/api/og/v2?division=Subgraphs\u0026amp;title=Subgraph+tags\u0026amp;description=Learn+how+to+use+tags+to+manage+your+subgraph+endpoints.\u0026amp;theme=976591e7974bce03f17963ad\u0026amp;signature=86d02f9cb51fe30db63a43b8cfc7b919edaba7abb5f4bd7c8f661a9c2f71c8d8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Subgraph tags - Goldsky Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to use tags to manage your subgraph endpoints.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://goldsky-38.mintlify.site/_mintlify/api/og/v2?division=Subgraphs\u0026amp;title=Subgraph+tags\u0026amp;description=Learn+how+to+use+tags+to+manage+your+subgraph+endpoints.\u0026amp;theme=976591e7974bce03f17963ad\u0026amp;signature=86d02f9cb51fe30db63a43b8cfc7b919edaba7abb5f4bd7c8f661a9c2f71c8d8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Goldsky\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F24B13\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@goldskyio\">\u003cmeta data-mint-head name=\"msvalidate.01\" content=\"ACCFDAF535E366D076B974FC456A5E23\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.goldsky.com/subgraphs/tags\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/subgraphs/tags.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.goldsky.com/#organization\",\"name\":\"Goldsky\",\"url\":\"https://docs.goldsky.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/goldsky-38/ji0yCkCfylVYRAVB/images/logo/light.svg?fit=max\u0026auto=format\u0026n=ji0yCkCfylVYRAVB\u0026q=85\u0026s=a5f82383787205b368a99af88dc7536e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.goldsky.com#website\",\"name\":\"Goldsky\",\"url\":\"https://docs.goldsky.com\",\"publisher\":{\"@id\":\"https://docs.goldsky.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.goldsky.com/subgraphs/tags#webpage\",\"url\":\"https://docs.goldsky.com/subgraphs/tags\",\"name\":\"Subgraph tags\",\"description\":\"Learn how to use tags to manage your subgraph endpoints.\",\"dateModified\":\"2026-09-09T00:28:53.646Z\",\"isPartOf\":{\"@id\":\"https://docs.goldsky.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.goldsky.com/subgraphs/tags#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.goldsky.com/subgraphs/tags#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Subgraphs\",\"item\":\"https://docs.goldsky.com/subgraphs/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Subgraph tags\",\"item\":\"https://docs.goldsky.com/subgraphs/tags\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.goldsky.com/subgraphs/tags#article\",\"headline\":\"Subgraph tags\",\"name\":\"Subgraph tags\",\"description\":\"Learn how to use tags to manage your subgraph endpoints.\",\"url\":\"https://docs.goldsky.com/subgraphs/tags\",\"mainEntityOfPage\":{\"@id\":\"https://docs.goldsky.com/subgraphs/tags#webpage\"},\"dateModified\":\"2026-09-09T00:28:53.646Z\",\"publisher\":{\"@id\":\"https://docs.goldsky.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.goldsky.com#website\"}}]}\u003c/script>","agentPointerHref":"/subgraphs/tags.md","siteName":"Goldsky","nav":{"global":{"anchors":[{"anchor":"Pricing","icon":"tag","href":"https://goldsky.com/pricing"},{"anchor":"Products","icon":"layers","href":"https://goldsky.com/products/turbo-pipelines"},{"anchor":"Solutions","icon":"compass","href":"https://goldsky.com/solutions/reconciliation"},{"anchor":"Comparisons","icon":"scale","href":"https://goldsky.com/compare/the-graph"}]},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":"/introduction"}]},{"tab":"Turbo","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/pipelines.svg","pages":[{"title":"Turbo","href":"/turbo-pipelines/introduction"}]},{"tab":"Edge RPC","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/edge.svg","pages":[{"title":"Edge RPC","href":"/edge-rpc/introduction"}]},{"tab":"Boost","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/boost.svg","pages":[{"title":"Boost","href":"/boost"}]},{"tab":"Feeds","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/feeds.svg","pages":[{"title":"Feeds","href":"/feeds"}]},{"tab":"Compose","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/compose.svg","pages":[{"title":"Compose","href":"/compose/introduction"}]},{"tab":"Subgraphs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/subgraphs.svg","groups":[{"group":"Subgraphs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/subgraphs.svg","pages":[{"title":"Index onchain data with Subgraphs","sidebarTitle":"Introduction","href":"/subgraphs/introduction"},{"title":"Deploy a subgraph","href":"/subgraphs/deploying-subgraphs"},{"title":"Migrate from TheGraph","sidebarTitle":"Migrate from TheGraph","href":"/subgraphs/migrate-from-the-graph"},{"title":"Subgraph webhooks","href":"/subgraphs/webhooks"},{"title":"GraphQL Endpoints","sidebarTitle":"GraphQL endpoints","href":"/subgraphs/graphql-endpoints"},{"title":"Stalled subgraph detection","sidebarTitle":"Stalled subgraphs","href":"/subgraphs/stalled-subgraphs"},{"title":"Blocks Subgraphs","sidebarTitle":"Blocks subgraphs","description":"The free blocks subgraphs have been sunset and removed. Migrate block number, hash, and timestamp lookups to eth_getBlockByNumber on Goldsky Edge instead.","href":"/subgraphs/blocks-subgraphs"},{"title":"Subgraph tags","public":true,"href":"/subgraphs/tags"}]},{"group":"Guides","icon":"map","pages":[{"title":"Create no-code subgraphs","description":"Deploy a subgraph from a contract address with the Goldsky no-code wizard: no configuration files or mapping code required.","sidebarTitle":"Create no-code subgraphs","href":"/subgraphs/guides/create-a-no-code-subgraph"},{"title":"Create low-code subgraphs","sidebarTitle":"Create low-code subgraphs","href":"/subgraphs/guides/create-a-low-code-subgraph"},{"title":"Create a cross-chain subgraph","sidebarTitle":"Create a cross-chain subgraph","href":"/subgraphs/guides/create-a-cross-chain-subgraph"},{"title":"Send subgraph-driven webhooks","sidebarTitle":"Send subgraph-driven webhooks","href":"/subgraphs/guides/send-subgraph-driven-webhooks"},{"title":"Use declared eth_calls to increase indexing performance","sidebarTitle":"Boost indexing with declared calls","href":"/subgraphs/guides/declared-eth-calls"},{"title":"Subgraph performance","sidebarTitle":"Subgraph performance","href":"/subgraphs/guides/performance"},{"title":"Testing subgraphs","sidebarTitle":"Testing subgraphs","href":"/subgraphs/guides/testing"}]},{"group":"Reference","icon":"library","pages":[{"title":"Instant subgraph configuration","href":"/subgraphs/reference/instant-subgraph"}]}]},{"tab":"Chains","pages":[{"title":"Chains","href":"/chains/supported-networks"}]}]},"basePath":"","title":"Subgraph tags - Goldsky Docs","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}