Schema elements are the building blocks of your API design. Understanding these components helps you create effective, scalable APIs.
Graphs
Graphs organize your API architecture. Your supergraph serves as the federated interface that combines all subgraphs, while individual subgraphs handle specific business domains. The canvas shows your supergraph at the center with subgraphs positioned to the right.Create new subgraphs to organize by business domain or team ownership. Configure subgraph metadata and manage dependencies between subgraphs.
Each subgraph has a distinct color that appears on all its components, making
it easy to see which subgraph owns which schema elements.
Types
Types define your data structure. They include:
Data models for core business entities like User or Product
Input structures for creating or updating data
Enum values for predefined options
Create new data structures, modify existing types to add fields or change relationships, and define validation rules and required fields.
Fields
Fields are the information and operations in your API. This includes:
Data properties like “name” or “email”
Operations like “createUser” or “searchProducts”
Computed values calculated from other data
Relationships connecting different data types
Add new properties or operations, configure data types and validation, and control subgraph access to specific fields.
Relationships
Relationships connect types and fields across your schema. These visual connections show how elements reference each other, displayed as lines on the canvas to help you understand your federated schema structure.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"WunderGraph Hub","colors":{"primary":"#a854f7","light":"#a854f7","dark":"#a854f7"},"logo":{"light":"https://mintcdn.com/wundergraphhub/XJOLUouDUgJP7_FW/logo/light.svg?fit=max\u0026auto=format\u0026n=XJOLUouDUgJP7_FW\u0026q=85\u0026s=4b5ca8ecfe3973e68addc0977f75c229","dark":"https://mintcdn.com/wundergraphhub/XJOLUouDUgJP7_FW/logo/dark.svg?fit=max\u0026auto=format\u0026n=XJOLUouDUgJP7_FW\u0026q=85\u0026s=ba8d9cfa2ab6311db7e12c907e7828c2","href":"https://hub-docs.wundergraph.com/"},"favicon":"https://mintcdn.com/wundergraphhub/Dr9oVUeC-0tFehUp/favicon.png?fit=max\u0026auto=format\u0026n=Dr9oVUeC-0tFehUp\u0026q=85\u0026s=d1da32a58bca6a275e0b9937e1e83e47","appearance":{"default":"dark","strict":true},"background":{"decoration":"grid"},"footer":{"socials":{"x":"https://twitter.com/wundergraphcom","discord":"https://wundergraph.com/discord","github":"https://github.com/wundergraph","youtube":"https://www.youtube.com/@wundergraph"},"links":[{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://wundergraph.com/privacy-policy"},{"label":"Cookie Policy","href":"https://wundergraph.com/cookies"},{"label":"Website Terms","href":"https://wundergraph.com/terms"},{"label":"Hub Terms","href":"https://wundergraph.com/hub-terms-of-service"},{"label":"Cosmo Terms","href":"https://wundergraph.com/cosmo-managed-service-terms"}]},{"header":"Trust","items":[{"label":"Trust Center","href":"https://trust.wundergraph.com/"}]}]},"seo":{"metatags":{"robots":"index, follow","google-site-verification":"tjBj_GsdRzC4ro_fAlKyJUbqGoAxtcajcWdR2tGCM3M","canonical":"https://hub-docs.wundergraph.com"}},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"styling":{"codeblocks":"system","latex":false},"integrations":{"koala":{"publicApiKey":"pk_c7477bfbf86479d918562f7add220a2d7098"},"posthog":{"apiKey":"phc_CEnvoyw3KcTuC5E1seDPrgvAamgGRDLfzPi1e7RU1G1","apiHost":"https://eu.i.posthog.com"},"plausible":{"domain":"hub-docs.wundergraph.com"}},"banner":{"content":"Help map how teams scale Federated GraphQL in the State of Federation 2026 Survey. We donate $30 to UNICEF per response → [Take the survey](https://8bxwlo3ot55.typeform.com/to/zIJKRQUe).","dismissible":false},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"interaction":{"drilldown":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"wundergraphhub","hasAudioNarration":false,"actualSubdomain":"wundergraphhub","customDomains":["hub-docs.wundergraph.com"],"gitSource":{"type":"github","owner":"wundergraph","repo":"hub-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10b7f39ffae5051c4016e9"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b09bead597fe4633a40f176","clientVersion":"0.0.4443","searchFilterCounts":[{"language":"default","tag":"Documentation","count":38},{"language":"default","tag":"Using Hub","count":30},{"language":"default","tag":"API Design","count":12},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Collaboration","count":5},{"language":"default","tag":"Integrations","count":5},{"language":"default","tag":"Concepts","count":4},{"language":"default","tag":"Proposals","count":3},{"language":"default","tag":"Git","count":3},{"language":"default","tag":"Getting Started","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","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":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-design/canvas/schema-elements","slug":"/api-design/canvas/schema-elements","pageMetadata":{"title":"Schema Elements","description":"Schema elements are the building blocks of your API design. Understanding these components helps you create effective, scalable APIs.","icon":"cubes","href":"/api-design/canvas/schema-elements"},"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: \"Schema elements are the building blocks of your API design. Understanding these components helps you create effective, scalable APIs.\"\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={li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`graphs`,children:`Graphs`}),`\n`,_jsx(_components.p,{children:`Graphs organize your API architecture. Your supergraph serves as the federated interface that combines all subgraphs, while individual subgraphs handle specific business domains. The canvas shows your supergraph at the center with subgraphs positioned to the right.`}),`\n`,_jsx(_components.p,{children:`Create new subgraphs to organize by business domain or team ownership. Configure subgraph metadata and manage dependencies between subgraphs.`}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Each subgraph has a distinct color that appears on all its components, making\nit easy to see which subgraph owns which schema elements.`})}),`\n`,_jsx(Heading,{level:`2`,id:`types`,children:`Types`}),`\n`,_jsx(_components.p,{children:`Types define your data structure. They include:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Data models for core business entities like User or Product`}),`\n`,_jsx(_components.li,{children:`Input structures for creating or updating data`}),`\n`,_jsx(_components.li,{children:`Enum values for predefined options`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Create new data structures, modify existing types to add fields or change relationships, and define validation rules and required fields.`}),`\n`,_jsx(Heading,{level:`2`,id:`fields`,children:`Fields`}),`\n`,_jsx(_components.p,{children:`Fields are the information and operations in your API. This includes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Data properties like “name” or “email”`}),`\n`,_jsx(_components.li,{children:`Operations like “createUser” or “searchProducts”`}),`\n`,_jsx(_components.li,{children:`Computed values calculated from other data`}),`\n`,_jsx(_components.li,{children:`Relationships connecting different data types`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Add new properties or operations, configure data types and validation, and control subgraph access to specific fields.`}),`\n`,_jsx(Heading,{level:`2`,id:`relationships`,children:`Relationships`}),`\n`,_jsx(_components.p,{children:`Relationships connect types and fields across your schema. These visual connections show how elements reference each other, displayed as lines on the canvas to help you understand your federated schema structure.`})]})}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":"system","config":{},"pageMetadata":{"title":"Schema Elements","description":"Schema elements are the building blocks of your API design. Understanding these components helps you create effective, scalable APIs.","icon":"cubes","href":"/api-design/canvas/schema-elements"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Graphs","slug":"graphs","depth":2,"children":[]},{"title":"Types","slug":"types","depth":2,"children":[]},{"title":"Fields","slug":"fields","depth":2,"children":[]},{"title":"Relationships","slug":"relationships","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/wundergraphhub/4d1581be6f2b55a2/analytics.js","/_mintlify/custom/wundergraphhub/0c26323010ad709b/osano.js"],"subdomain":"wundergraphhub","siteName":"WunderGraph Hub","title":"Schema Elements - WunderGraph Hub","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-03T09:18:27.911Z","originalFileLocation":"api-design/canvas/schema-elements.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"Schema elements are the building blocks of your API design. Understanding these components helps you create effective, scalable APIs.\">\u003cmeta data-mint-head name=\"application-name\" content=\"WunderGraph Hub\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/wundergraphhub/ScMvbIkRGodx3rJe/_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/wundergraphhub/ScMvbIkRGodx3rJe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/wundergraphhub/ScMvbIkRGodx3rJe/_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/wundergraphhub/ScMvbIkRGodx3rJe/_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/wundergraphhub/ScMvbIkRGodx3rJe/_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/wundergraphhub/ScMvbIkRGodx3rJe/_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/wundergraphhub/ScMvbIkRGodx3rJe/_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/wundergraphhub/ScMvbIkRGodx3rJe/_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/wundergraphhub/ScMvbIkRGodx3rJe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Schema Elements - WunderGraph Hub\">\u003cmeta data-mint-head property=\"og:description\" content=\"Schema elements are the building blocks of your API design. Understanding these components helps you create effective, scalable APIs.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"WunderGraph Hub\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://hub-docs.wundergraph.com/api-design/canvas/schema-elements\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://wundergraphhub.mintlify.site/_mintlify/api/og/v2?division=API+Design\u0026amp;title=Schema+Elements\u0026amp;description=Schema+elements+are+the+building+blocks+of+your+API+design.+Understanding+these+components+helps+you+create+effective%2C+scalable+APIs.\u0026amp;theme=dabb2d4b03b994c29f090b65\u0026amp;signature=2f0013a5746e2a8d9a715b444fbd5a4b30db9735767ed07ab0e59da13063e325\">\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=\"Schema Elements - WunderGraph Hub\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Schema elements are the building blocks of your API design. Understanding these components helps you create effective, scalable APIs.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://wundergraphhub.mintlify.site/_mintlify/api/og/v2?division=API+Design\u0026amp;title=Schema+Elements\u0026amp;description=Schema+elements+are+the+building+blocks+of+your+API+design.+Understanding+these+components+helps+you+create+effective%2C+scalable+APIs.\u0026amp;theme=dabb2d4b03b994c29f090b65\u0026amp;signature=2f0013a5746e2a8d9a715b444fbd5a4b30db9735767ed07ab0e59da13063e325\">\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/wundergraphhub/ScMvbIkRGodx3rJe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"WunderGraph Hub\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#a854f7\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"tjBj_GsdRzC4ro_fAlKyJUbqGoAxtcajcWdR2tGCM3M\">\u003clink data-mint-head rel=\"canonical\" href=\"https://hub-docs.wundergraph.com/api-design/canvas/schema-elements\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-design/canvas/schema-elements.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://hub-docs.wundergraph.com/#organization\",\"name\":\"WunderGraph Hub\",\"url\":\"https://hub-docs.wundergraph.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/wundergraphhub/XJOLUouDUgJP7_FW/logo/light.svg?fit=max\u0026auto=format\u0026n=XJOLUouDUgJP7_FW\u0026q=85\u0026s=4b5ca8ecfe3973e68addc0977f75c229\"}},{\"@type\":\"WebSite\",\"@id\":\"https://hub-docs.wundergraph.com#website\",\"name\":\"WunderGraph Hub\",\"url\":\"https://hub-docs.wundergraph.com\",\"publisher\":{\"@id\":\"https://hub-docs.wundergraph.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://hub-docs.wundergraph.com/api-design/canvas/schema-elements#webpage\",\"url\":\"https://hub-docs.wundergraph.com/api-design/canvas/schema-elements\",\"name\":\"Schema Elements\",\"description\":\"Schema elements are the building blocks of your API design. Understanding these components helps you create effective, scalable APIs.\",\"dateModified\":\"2026-03-03T09:18:27.911Z\",\"isPartOf\":{\"@id\":\"https://hub-docs.wundergraph.com#website\"},\"breadcrumb\":{\"@id\":\"https://hub-docs.wundergraph.com/api-design/canvas/schema-elements#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://hub-docs.wundergraph.com/api-design/canvas/schema-elements#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Using Hub\",\"item\":\"https://hub-docs.wundergraph.com/guides/guides-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Design\",\"item\":\"https://hub-docs.wundergraph.com/api-design/api-design\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Schema Elements\",\"item\":\"https://hub-docs.wundergraph.com/api-design/canvas/schema-elements\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://hub-docs.wundergraph.com/api-design/canvas/schema-elements#article\",\"headline\":\"Schema Elements\",\"name\":\"Schema Elements\",\"description\":\"Schema elements are the building blocks of your API design. Understanding these components helps you create effective, scalable APIs.\",\"url\":\"https://hub-docs.wundergraph.com/api-design/canvas/schema-elements\",\"mainEntityOfPage\":{\"@id\":\"https://hub-docs.wundergraph.com/api-design/canvas/schema-elements#webpage\"},\"dateModified\":\"2026-03-03T09:18:27.911Z\",\"publisher\":{\"@id\":\"https://hub-docs.wundergraph.com/#organization\"},\"isPartOf\":{\"@id\":\"https://hub-docs.wundergraph.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"WunderGraph Hub\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"WunderGraph Hub\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-design/canvas/schema-elements.md","siteName":"WunderGraph Hub","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","groups":[{"group":"Getting Started","pages":[{"title":"WunderGraph Hub","icon":"house","sidebarTitle":"Overview","href":"/introduction"},{"title":"Quickstart","icon":"rocket","href":"/quickstart/quickstart"},{"title":"Setup","icon":"gear","href":"/setup/getting-set-up"}]},{"group":"Using Hub","pages":[{"group":"Guides","icon":"route","pages":[{"title":"Overview","icon":"info","href":"/guides/guides-overview"},{"title":"Explore Your Graph","icon":"compass","href":"/guides/explore-graph"},{"title":"Design a Query from a Mockup","icon":"wand-magic-sparkles","href":"/guides/design-query"},{"title":"Add Types and Fields","icon":"scale-balanced","href":"/guides/add-types-and-fields"},{"title":"Create a New Subgraph","icon":"network-wired","href":"/guides/create-subgraph"},{"title":"Assign Ownership","icon":"shield","href":"/guides/assign-ownership"},{"title":"Propose and Review Changes","icon":"users","href":"/guides/propose-and-review"}]},{"group":"Schema Development","icon":"diagram-project","pages":[{"title":"Schema First Approach","icon":"pen-ruler","href":"/schema-development/schema-first"},{"title":"Code First Approach","icon":"code","href":"/schema-development/code-first"}]},{"group":"API Design","icon":"palette","pages":[{"title":"Overview","href":"/api-design/api-design"},{"title":"Canvas Introduction","icon":"palette","href":"/api-design/canvas/canvas-introduction"},{"title":"Action Bar","icon":"sliders","description":null,"href":"/api-design/canvas/action-bar"},{"title":"Schema Elements","icon":"cubes","href":"/api-design/canvas/schema-elements"},{"title":"UI Mock Node","icon":"image","description":null,"href":"/ui-mock-query/ui-mock-node"},{"title":"Operation Builder Node","icon":"code","href":"/ui-mock-query/operation-builder-node"},{"title":"Branching","icon":"code-branch","href":"/api-design/branching-and-forks"},{"title":"Working with Types and Fields","icon":"pencil","href":"/api-design/working-with-types-and-fields"},{"title":"Collections","icon":"folder","href":"/api-design/collections"},{"title":"Schema Page","icon":"file-code","href":"/api-design/schema-page"},{"title":"Optimizer","icon":"gauge","href":"/api-design/optimizer"},{"title":"Hub AI","icon":"sparkles","href":"/api-design/hub-ai"}]},{"group":"Collaboration","icon":"comments","pages":[{"title":"Overview","href":"/collaboration/collaboration"},{"title":"Discussions","icon":"message-lines","href":"/collaboration/discussions"},{"group":"Proposals","icon":"file-lines","pages":[{"title":"Proposals","icon":"file-lines","href":"/collaboration/proposals/introducing-proposals"},{"title":"Overview","icon":"chart-mixed","href":"/collaboration/proposals/proposal-overview"},{"title":"Operations changed page","icon":"code-compare","href":"/collaboration/proposals/operations-changed-page"}]}]},{"group":"Concepts","icon":"lightbulb","pages":[{"title":"Overview","href":"/concepts/core-concepts"},{"title":"Dream Queries","icon":"wand-magic-sparkles","href":"/concepts/dream-queries"},{"title":"Fission","icon":"code-branch","href":"/concepts/fission"},{"title":"Governance","icon":"scale-balanced","href":"/concepts/governance"}]}]},{"group":"Integrations","icon":"plug","pages":[{"group":"Git","icon":"code-branch","pages":[{"title":"GitHub","icon":"github","href":"/integrations/git/github"},{"title":"GitLab","icon":"gitlab","href":"/integrations/git/gitlab"},{"title":"GitLab App Setup","icon":"gitlab","href":"/integrations/git/gitlab-app-setup"}]},{"group":"Schema Registry","icon":"cloud","pages":[{"title":"WunderGraph Cosmo","icon":"rocket","href":"/integrations/schema-registry/wundergraph-cosmo"},{"title":"Apollo GraphOS","icon":"shuttle-space","href":"/integrations/schema-registry/apollo-graphos"}]}]}]}]},"basePath":"","title":"Schema Elements - WunderGraph Hub","deploymentId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","buildId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","dynamics":["10e4515597"],"chunks":["BannerMarkdown-tcr6AuFZ.js","dist-BOBeilfN.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}