PageSourceSearch

https://docs.coalesce.io/assets/js/fb6e2ea3.90cd538c.js

js coalesce.io collected 2026-09-24 18:04:20 UTC 20,489 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkcoalesce_docs=globalThis.webpackChunkcoalesce_docs||[]).push([[8515],{5601(e,n,t){t.r(n),t.d(n,{Badge:()=>f,Bullet:()=>m,SpecifiedBy:()=>h,assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>s,toc:()=>g});const s=JSON.parse('{"id":"catalog/api/schemas/operations/mutations/update-schemas","title":"updateSchemas","description":"}>","source":"@site/docs/catalog/api/16-schemas/07-operations/05-mutations/update-schemas.mdx","sourceDirName":"catalog/api/16-schemas/07-operations/05-mutations","slug":"/catalog/api/schemas/operations/mutations/update-schemas","permalink":"/docs/catalog/api/schemas/operations/mutations/update-schemas","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"displayed_sidebar":"catalogApiSidebar","sidebar_class_name":"mutation api-method","hide_table_of_contents":true,"pagination_next":null,"pagination_prev":null,"id":"update-schemas","title":"updateSchemas"},"sidebar":"catalogApiSidebar"}');var r=t(74848),a=t(28453),i=t(14548),o=t(55719),l=t(73464),c=(t(77242),t(17768));const d={displayed_sidebar:"catalogApiSidebar",sidebar_class_name:"mutation api-method",hide_table_of_contents:!0,pagination_next:null,pagination_prev:null,id:"update-schemas",title:"updateSchemas"},u=void 0,p={},m=()=>(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{style:{fontWeight:"normal",fontSize:".5em",color:"var(--ifm-color-secondary-darkest)"},children:"\xa0\u25cf\xa0"})}),h=e=>(0,r.jsxs)(r.Fragment,{children:["Specification",(0,r.jsx)("a",{className:"link",style:{fontSize:"1.5em",paddingLeft:"4px"},target:"_blank",href:e.url,title:"Specified by "+e.url,children:"\u2398"})]}),f=e=>(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{className:e.class,children:e.text})}),g=[];function y(e){const n={code:"code",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,r.jsxs)(i.A,{tryIt:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l.A,{kind:"mutation",operation:"updateSchemas"})}),children:[(0,r.jsx)(o.A,{kind:"mutation",name:"updateSchemas"}),(0,r.jsx)(n.p,{children:"This mutation will allow you to batch update the schemas you created."}),(0,r.jsx)(n.p,{children:"Note that in order not to mess with data ingested by Catalog, only the schemas belonging to sources and databases created from this API will be editable."}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-graphql",children:"updateSchemas(\n  data: [UpdateSchemaInput!]!\n): [Schema!]!\n"})}),(0,r.jsx)(c.A,{kind:"mutation",operation:"updateSchemas"})]})}function x(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(y,{...e})}):y(e)}},93290(e,n,t){t.d(n,{Cf:()=>h,Sh:()=>f});var s=t(5774),r=t(59811),a=t(86745);function i(e){if((0,s.bd)(e))return`${i(e.ofType)}!`;if((0,s.Fs)(e)){const n=e.ofType,t=(0,s.MR)(n),r=(0,s.bd)(n)?"!":"";return`[${t.name}${r}]`}return(0,s.MR)(e).name}function o(e){if((0,s.Fs)(e)){const n=(0,s.MR)(e.ofType);return(0,s.YQ)(n)?n:null}const n=(0,s.MR)(e);return(0,s.YQ)(n)?n:null}const l=["id","name","label","status","jobId","query","email"],c=["totalCount","page","nbPerPage","jobId","status"];function d(e,n){const t=e.getFields();return n.filter(e=>{const n=t[e];return n&&function(e){const n=(0,s.MR)(e);return(0,s.lg)(n)||(0,s.oF)(n)}(n.type)})}function u(e,n,t,s){const r=" ".repeat(s);if(t>=n.length)return function(e,n){const t=" ".repeat(n),s=d(e,l);return 0===s.length?`${t}__typename`:s.map(e=>`${t}${e}`).join("\n")}(e,s);const a=n[t],i=e.getFields()[a];if(!i)return`${r}__typename`;const c=o(i.type);if(!c)return`${r}__typename`;return`${r}${a} {\n${u(c,n,t+1,s+2)}\n${r}}`}function p(e,n){const t=d(e,l).map(e=>e);if("list"!==n.mode)return t.join("\n    ");const s=function(e){if(!e.length)return null;const n=[...e].sort((e,n)=>n.split(".").length-e.split(".").length),t=n.filter(e=>e.split(".").length>=3);return t.find(e=>e.startsWith("schema."))||t.find(e=>e.startsWith("tagEntities."))||t.find(e=>e.split(".").length>=2)||n[0]}(n.paths);if(!s)return t.join("\n    ");const r=u(e,s.split("."),0,4),a=s.split(".")[0];
1return t.includes(a)||t.push(r),t.join("\n    ")}function m(e,n,t,r){const a=n.length>0?`${e}(${n.join(", ")})`:e,i=(0,s.MR)(t);if((0,s.lg)(i))return a;const l=function(e,n){const t=(0,s.MR)(e);if((0,s.lg)(t)||(0,s.oF)(t))return null;if(!t.getFields)return"__typename";if((0,s.Fs)(e)){const t=o(e);return t?p(t,n):"__typename"}const r=t.getFields();if(r.data){const e=d(t,c),s=o(r.data.type);if(s){const t=p(s,n);e.push(`data {\n    ${t}\n  }`)}else e.push("data");return e.join("\n    ")}return p(t,n)}(t,r)||"__typename";return`${a} {\n    ${l}\n  }`}function h(e,n,t){const s="mutation"===n?e.getMutationType():e.getQueryType(),o=s?.getFields()?.[t];if(!o)return null;const l=(0,a.b)(o.description),c=t.charAt(0).toUpperCase()+t.slice(1);if(!o.args.length){return{query:`${n} ${c} {\n  ${m(t,[],o.type,l)}\n}`,variables:{},variablesJson:"{}"}}const d=[],u=[],p={};for(const a of o.args){d.push(`$${a.name}: ${i(a.type)}`),u.push(`${a.name}: $${a.name}`);const e=(0,r.t)(a);void 0!==e&&(p[a.name]=e)}return{query:`${n} ${c}(\n  ${d.join(",\n  ")}\n) {\n  ${m(t,u,o.type,l)}\n}`,variables:p,variablesJson:Object.keys(p).length>0?JSON.stringify(p,null,2):"{}"}}function f(e){return(0,s.bd)(e)}},59811(e,n,t){t.d(n,{cB:()=>c,q1:()=>l,t:()=>d});var s=t(5774);const r=["nameContains","name","question","folderPath","pathContains","ids","sourceId","sourceIds","tableIds","databaseId","schemaId","warehouseId","tableId"];function a(e,n){const t=e?.astNode?.directives?.find(e=>"example"===e.name?.value),r=t?.arguments?.find(e=>"value"===e.name?.value),a=r?.value?.value;if("string"==typeof a&&""!==a.trim())return function(e,n){const t=(0,s.MR)(n),r=e.trim();if(r.startsWith("[")||r.startsWith("{"))try{return JSON.parse(r)}catch{return e}if((0,s.oF)(t))return t.getValues().some(e=>e.name===r)?r:void 0;if("Int"===t?.name||"Float"===t?.name){const n=Number(r);return Number.isNaN(n)?e:n}if("Boolean"===t?.name){if("true"===r)return!0;if("false"===r)return!1}return e}(a,n)}function i(e,n){return e.endsWith("Scope")?r.includes(n):e.endsWith("Sorting")?["sortingKey","direction"].includes(n):"PublicPagination"===e?["nbPerPage","page"].includes(n):"delaySeconds"===n}function o(e,n={}){const{fieldName:t="",depth:r=0,argName:a=""}=n,i=(0,s.MR)(e),c=(0,s.bd)(e);if((0,s.lg)(i))return function(e,n=""){const t=n.toLowerCase();switch(e.name){case"String":return t.includes("email")?"[email protected]":"question"===t?"revenue by region":t.includes("namecontains")?"revenue":"name"===t?"Example Name":"description"===t?"Created via the Catalog Public API":"label"===t?"example-tag":"externalid"===t?"your_external_id":"datatype"===t?"STRING":"folderpath"===t?"/Reports":t.endsWith("id")||"id"===t?"YOUR_ID":"YOUR_VALUE";case"Int":return"nbperpage"===t?20:"page"===t?0:"delayseconds"===t?2:0;case"Float":return 0;case"Boolean":return"isnullable"===t;case"ID":return"YOUR_ID";default:return null}}(i,t);if((0,s.oF)(i))return function(e,n=""){const t=(0,s.MR)(e);if(!(0,s.oF)(t))return null;const r=t.getValues().map(e=>e.name);return"sortingKey"===n&&r.includes("name")?"name":r.includes("ASC")?"ASC":r[0]??null}(e,t);if((0,s.Fs)(e)){const t=o(e.ofType,{...n,depth:r+1});return null==t?c?[]:void 0:[t]}if((0,s.qK)(i)){const n=l(e,r);return n||(c?{}:void 0)}return c?null:void 0}function l(e,n=0){if(n>5)return null;const t=(0,s.MR)(e);if(!(0,s.qK)(t))return null;if(t.name.endsWith("Scope"))return function(e){const n=e.getFields(),t=(n,t)=>a(t,t.type)??o(t.type,{argName:e.name,fieldName:n,depth:1});for(const s of r){if(!n[s])continue;const e=t(s,n[s]);if(void 0!==e)return{[s]:e}}for(const[s,r]of Object.entries(n)){const e=t(s,r);if(void 0!==e)return{[s]:e}}return null}(t);const l=t.name,c={};for(const[r,d]of Object.entries(t.getFields())){const e=(0,s.bd)(d.type),t=a(d,d.type),u=void 0!==t?t:o(d.type,{argName:l,fieldName:r,depth:n+1});void 0!==u&&((e||void 0!==t||i(l,r))&&(c[r]=u))}return Object.keys(c).length>0?c:null}function c(e,n=0){if(n>1)return null;const t=(0,s.MR)(e);if(!(0,s.YQ)(t))return null;const r=new Set(["id","name","label","status","jobId","totalCount","email","slug","lineageType"]),i={};for(const[l,c]of Object.entries(t.getFields())){const e=(0,s.MR)(c.type);if((0,s.Fs)(c.type)||(0,s.YQ)(e)&&!(0,s.lg)(e))continue;const t=a(c,c.type),d=void 0!==t?t:o(c.type,{fieldName:l,depth:n+1}),u=(0,s.bd)(c.type);void 0!==d&&((u||void 0!==t||r.has(l))&&(i[l]=d))}return Object.keys(i).length>0?i:null}function d(e){const n=(0,s.MR)(e.type),t=a(e,e.type);return void 0!==t?t:(0,s.bd)(e.type)||"pagination"===e.name||"sorting"===e.name||"scope"===e.name||"data"===e.name&&(0,s.qK)(n)?o(e.type,{argName:n.name}):void 0}},86745(e,n,t){function s(e){if(!e)return{mode:"unspecified",paths:[],tree:{}};const n=e.indexOf("### Allowed relations");
1if(-1===n)return{mode:"unspecified",paths:[],tree:{}};const t=e.slice(n);if(t.includes("You cannot request any relation"))return{mode:"none",paths:[],tree:{}};const s=[...t.matchAll(/- `([^`]+)`/g)].map(e=>e[1]);return 0===s.length?{mode:"unspecified",paths:[],tree:{}}:{mode:"list",paths:s,tree:a(s)}}function r(e){if(!e)return"";const n=e.indexOf("### Allowed relations");return-1===n?e.trim():e.slice(0,n).trim()}function a(e){const n={};for(const t of e){let e=n;for(const n of t.split("."))e[n]||(e[n]={}),e=e[n]}return n}t.d(n,{J:()=>r,b:()=>s})},14548(e,n,t){t.d(n,{A:()=>o});var s=t(96540),r=t(3897);function a(){return(0,s.useEffect)(()=>{(0,r.Cd)()},[]),null}var i=t(74848);function o({children:e,tryIt:n}){return(0,i.jsxs)("div",{className:"graphql-doc-layout",children:[(0,i.jsx)(a,{}),(0,i.jsx)("div",{className:"graphql-doc-main",children:e}),n?(0,i.jsx)("aside",{className:"graphql-doc-aside",children:n}):null]})}},73464(e,n,t){t.d(n,{A:()=>l});var s=t(96540),r=t(29813),a=t(74848);const i=s.lazy(()=>Promise.all([t.e(71869),t.e(82139),t.e(99219),t.e(55373),t.e(14646),t.e(71468),t.e(20652)]).then(t.bind(t,33335)));function o({operation:e,kind:n}){return(0,a.jsx)(r.default,{fallback:(0,a.jsx)("div",{className:"graphql-explorer__loading",children:"Loading explorer\u2026"}),children:()=>(0,a.jsx)(s.Suspense,{fallback:(0,a.jsx)("div",{className:"graphql-explorer__loading",children:"Loading explorer\u2026"}),children:(0,a.jsx)(i,{operation:e,kind:n})})})}function l({operation:e,kind:n}){return(0,a.jsx)(o,{operation:e,kind:n})}},55719(e,n,t){t.d(n,{A:()=>a});t(96540);var s=t(34164),r=t(74848);function a({kind:e,name:n}){return(0,r.jsxs)("div",{className:"graphql__operation-endpoint","data-graphql-kind":e,children:[(0,r.jsx)("span",{className:(0,s.A)("graphql__operation-badge",`graphql__operation-badge--${e}`),children:e}),(0,r.jsx)("code",{className:"graphql__operation-name",children:n})]})}},17768(e,n,t){t.d(n,{A:()=>M});var s=t(96540),r=t(98180),a=t(14783),i=t(93187),o=t(5899),l=t(84466),c=t(5774),d=t(93356),u=t(93290),p=t(86745);function m(e){const n=(0,c.MR)(e);return(0,c.lg)(n)||(0,c.oF)(n)}function h(e){if((0,c.Fs)(e)){const n=(0,c.MR)(e.ofType);return(0,c.YQ)(n)?n:null}const n=(0,c.MR)(e);return(0,c.YQ)(n)?n:null}function f(e){return{name:e.name,type:e.type,required:(0,u.Sh)(e.type),description:e.description,children:[]}}function g(e,{relationsMode:n,relationTree:t,depth:s=0}){if(!e||s>4)return[];const r=[];for(const a of Object.values(e.getFields())){if("__typename"===a.name)continue;if(m(a.type)){r.push(f(a));continue}if("none"===n||"unspecified"===n)continue;if(!t||!t[a.name])continue;const e=f(a),i=h(a.type);i&&(e.children=g(i,{relationsMode:"list",relationTree:t[a.name],depth:s+1})),r.push(e)}return r}function y(e,n){return function(e,n){const{mode:t,tree:s}=n,r=(0,c.MR)(e);if((0,c.lg)(r)||(0,c.oF)(r))return[];if((0,c.Fs)(e)){const n=(0,c.MR)(e.ofType);return(0,c.YQ)(n)?g(n,{relationsMode:t,relationTree:s,depth:0}):[]}if(!(0,c.YQ)(r))return[];const a=[];for(const i of Object.values(r.getFields())){if("__typename"===i.name)continue;const e=f(i),n=h(i.type);"data"===i.name&&n?(e.children=g(n,{relationsMode:t,relationTree:s,depth:0}),a.push(e)):m(i.type)?a.push(e):n&&"list"===t&&s[i.name]&&(e.children=g(n,{relationsMode:"list",relationTree:s[i.name],depth:0}),a.push(e))}return a}(e,n)}var x=t(74848);function j(e){return(0,c.bd)(e)?`${j(e.ofType)}!`:(0,c.Fs)(e)?`[${j(e.ofType)}]`:(0,c.MR)(e).name}function b(e){const n=function(e){return(0,c.lg)(e)?"scalars":(0,c.oF)(e)?"enums":(0,c.qK)(e)?"inputs":(0,c.YQ)(e)?"objects":null}(e);return n?`/docs/catalog/api/${function(e){const n=e?.astNode?.directives?.find(e=>"group"===e.name?.value),t=n?.arguments?.find(e=>"name"===e.name?.value),s=t?.value?.value;return"string"!=typeof s||""===s.trim()?"general":s.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}(e)}/types/${n}/${t=e.name,t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").toLowerCase()}`:null;var t}function _({type:e}){const n=b((0,c.MR)(e)),t=j(e);return n?(0,x.jsx)(a.default,{to:n,children:(0,x.jsx)("code",{children:t})}):t}function v({required:e}){return void 0===e?null:e?(0,x.jsx)("span",{className:"openapi-schema__required",children:"required"}):null}function q({name:e,type:n,required:t}){return(0,x.jsxs)("span",{className:"openapi-schema__container",children:[e?(0,x.jsx)("strong",{className:"openapi-schema__property",children:e}):null,(0,x.jsxs)("span",{className:"openapi-schema__name",children:[e?" ":null,(0,x.jsx)(_,{type:n})]}),void 0!==t?(0,x.jsx)("span",{className:"openapi-schema__divider"}):null,(0,x.jsx)(v,{required:t})]})}function N(e,n=0){if(n>2)return[];const t=(0,c.MR)(e);return(0,c.qK)(t)?Object.values(t.getFields()).map(e=>({name:e.name,type:e.type,required:(0,u.Sh)(e.type),description:e.description,children:N(e.type,n+1)})):[]}function S({text:e}){return e?(0,x.jsx)("div",{style:{marginTop:".5rem",marginBottom:".5rem"},children:(0,x.jsx)(l.default,{children:e})}):null}function F({name:e,type:n,required:t}){return(0,x.jsx)("summary",{children:(0,x.jsx)(q,{name:e,type:n,required:t})})}function w({children:e}){return e?(0,x.jsx)("div",{style:{textAlign:"left",marginLeft:"1rem"},children:(0,x.jsx)("div",{style:{marginTop:"1rem",marginBottom:"1rem"},children:e})}):null}function $({title:e="Schema",description:n,children:t}){return(0,x.jsxs)(o.default,{className:"openapi-markdown__details response","data-collapsed":!1,open:!0,summary:(0,x.jsx)("summary",{children:(0,x.jsx)("strong",{className:"openapi-markdown__details-summary-response",children:e})}),children:[n?(0,x.jsx)(w,{children:n}):null,(0,x.jsx)("div",{className:"openapi-schema__list",style:{marginLeft:"1rem"},children:t})]})}function k({fields:e}){return e?.length?e.map(e=>(0,x.jsx)(I,{field:e},e.name)):null}function R({field:e}){return(0,x.jsx)("div",{className:"openapi-schema__list-item",children:(0,x.jsxs)("div",{children:[(0,x.jsx)(q,{name:e.name,type:e.type,required:e.required}),e.description?(0,x.jsx)(l.default,{children:e.description}):null]})})}function I({field:e}){return e.children?.length>0?(0,x.jsx)("div",{className:"openapi-schema__list-item",children:(0,x.jsx)(o.default,{className:"openapi-markdown__details",summary:(0,x.jsx)(F,{name:e.name,type:e.type,required:e.required}),children:(0,x.jsxs)("div",{style:{marginLeft:"1rem"},children:[(0,x.jsx)(S,{text:e.description}),(0,x.jsx)(k,{fields:e.children})]})})}):(0,x.jsx)(R,{field:e})}function M({kind:e,operation:n}){const{schema:t,error:a}=function(){const e=(0,r.Ay)("/graphql/public-schema.graphql"),[n,t]=(0,s.use
1State)(null),[a,i]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let n=!1;return fetch(e).then(e=>{if(!e.ok)throw new Error(`Failed to load schema (${e.status})`);return e.text()}).then(e=>{n||t((0,d.I)(e))}).catch(e=>{n||i(e.message)}),()=>{n=!0}},[e]),{schema:n,error:a}}(),o=(0,s.useMemo)(()=>{if(!t)return null;const s="mutation"===e?t.getMutationType():t.getQueryType(),r=s?.getFields()?.[n];if(!r)return null;const a=r.args.map(e=>({name:e.name,type:e.type,required:(0,u.Sh)(e.type),description:e.description,children:N(e.type)})),i=(0,u.Cf)(t,e,n),o=(0,p.b)(r.description),l=y(r.type,o),c=(0,p.J)(r.description);return{args:a,example:i,allowedRelations:o,responseType:r.type,responseDescription:c,responseFields:l}},[t,e,n]);if(a)return(0,x.jsx)("p",{className:"graphql-op-error",children:"Could not load schema details."});if(!o)return null;const l=o.responseDescription||"none"===o.allowedRelations.mode||"unspecified"===o.allowedRelations.mode&&o.responseFields.length>0;return(0,x.jsxs)("div",{className:"graphql-op-schema",children:[o.args.length>0?(0,x.jsxs)("section",{className:"graphql-op-section",children:[(0,x.jsx)("h2",{children:"Arguments"}),(0,x.jsx)($,{title:"Schema",children:(0,x.jsx)(k,{fields:o.args})})]}):null,o.example?(0,x.jsxs)("section",{className:"graphql-op-section",children:[(0,x.jsx)("h2",{children:"Example"}),(0,x.jsx)("p",{className:"graphql-op-field__desc",children:"Pass argument values as GraphQL variables. In the Try it panel, use the query below and paste the variables JSON into the variables field."}),(0,x.jsx)("h3",{className:"graphql-op-example__heading",children:"Query"}),(0,x.jsx)(i.default,{language:"graphql",className:"graphql-op-example__block",children:o.example.query}),"{}"!==o.example.variablesJson?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("h3",{className:"graphql-op-example__heading",children:"Variables"}),(0,x.jsx)(i.default,{language:"json",className:"graphql-op-example__block",children:o.example.variablesJson})]}):null]}):null,(0,x.jsxs)("section",{className:"graphql-op-section",children:[(0,x.jsx)("h2",{children:"Response"}),(0,x.jsxs)("p",{className:"graphql-op-field__desc",children:["Fields you can include in your query for this operation. Nested objects are listed only when this endpoint supports them. Use a follow-up read query such as"," ",(0,x.jsx)("code",{children:"getColumns"})," or ",(0,x.jsx)("code",{children:"getTables"})," when you need related data not shown here."]}),(0,x.jsxs)($,{title:"Schema",description:l?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(S,{text:o.responseDescription}),"none"===o.allowedRelations.mode?(0,x.jsx)(S,{text:"This operation returns only simple fields (text, numbers, IDs). Nested relations such as `table` or `tagEntities` are not available on this endpoint."}):null,"unspecified"===o.allowedRelations.mode&&o.responseFields.length>0?(0,x.jsx)(S,{text:"Nested relations are not documented for this operation. Only simple fields are listed below."}):null]}):null,children:[(0,x.jsx)(R,{field:{name:void 0,type:o.responseType,required:void 0,description:void 0}}),o.responseFields.length>0?(0,x.jsx)(k,{fields:o.responseFields}):null]})]})]})}},77242(e,n,t){t.d(n,{A:()=>p});var s=t(96540),r=t(90031),a=t(98180),i=t(93187),o=t(5774),l=t(93356),c=t(59811);function d(e,n,t){try{return function(e,n,t){const s=e.getType(n);if(!s)return null;let r=null;return"input"===t||(0,o.qK)(s)?r=(0,c.q1)(s,0,n):("object"===t||(0,o.YQ)(s))&&(r=(0,c.cB)(s)),r&&0!==Object.keys(r).length?JSON.stringify(r,null,2):null}((0,l.I)(e),n,t)}catch{return null}}var u=t(74848);function p(){const{frontMatter:e,metadata:n}=(0,r.u)(),t=(0,a.Ay)("/graphql/public-schema.graphql"),[o,l]=(0,s.useState)(null),[c,p]=(0,s.use
1State)(null),m=e.title,h=function(e=""){return e.includes("/03-inputs/")?"input":e.includes("/06-objects/")?"object":null}(n?.source);return(0,s.useEffect)(()=>{if(!m||!h)return;let e=!1;return fetch(t).then(e=>{if(!e.ok)throw new Error(`Failed to load schema (${e.status})`);return e.text()}).then(n=>{if(e)return;const t=d(n,m,h);l(t)}).catch(n=>{e||p(n.message)}),()=>{e=!0}},[t,m,h]),c?(0,u.jsx)("p",{className:"graphql-op-error",children:"Could not load type example."}):o?(0,u.jsx)(i.default,{language:"json",className:"graphql-type-example__block",children:o}):null}},3897(e,n,t){t.d(n,{Cd:()=>l,bP:()=>a,hk:()=>i});const s="catalog-api-explorer-token";function r(e){if(!e)return;const n=[];for(let t=0;t<e.length;t+=1){const r=e.key(t);r===s&&n.push(r)}n.forEach(n=>e.removeItem(n))}function a(){if("undefined"==typeof window)return"";const e=sessionStorage.getItem(s);if(e)return e;const n=localStorage.getItem(s);return n?(sessionStorage.setItem(s,n),localStorage.removeItem(s),n):""}function i(e){"undefined"!=typeof window&&(e?sessionStorage.setItem(s,e):sessionStorage.removeItem(s),localStorage.removeItem(s))}let o=!1;function l(){"undefined"==typeof window||o||(o=!0,window.addEventListener("pagehide",e=>{e.persisted||"undefined"!=typeof window&&(r(sessionStorage),r(localStorage))}))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.