PageSourceSearch

https://docs.coalesce.io/assets/js/cee6e399.65f67102.js

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

1"use strict";(globalThis.webpackChunkcoalesce_docs=globalThis.webpackChunkcoalesce_docs||[]).push([[7448],{59816(e,n,t){t.r(n),t.d(n,{Badge:()=>h,Bullet:()=>m,SpecifiedBy:()=>f,assets:()=>p,contentTitle:()=>d,default:()=>x,frontMatter:()=>u,metadata:()=>r,toc:()=>g});const r=JSON.parse('{"id":"catalog/api/comments/operations/queries/get-comments","title":"getComments","description":"}>","source":"@site/docs/catalog/api/04-comments/07-operations/08-queries/get-comments.mdx","sourceDirName":"catalog/api/04-comments/07-operations/08-queries","slug":"/catalog/api/comments/operations/queries/get-comments","permalink":"/docs/catalog/api/comments/operations/queries/get-comments","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"displayed_sidebar":"catalogApiSidebar","sidebar_class_name":"query api-method","hide_table_of_contents":true,"pagination_next":null,"pagination_prev":null,"id":"get-comments","title":"getComments"},"sidebar":"catalogApiSidebar"}');var s=t(74848),i=t(28453),a=t(14548),o=t(55719),l=t(73464),c=(t(77242),t(17768));const u={displayed_sidebar:"catalogApiSidebar",sidebar_class_name:"query api-method",hide_table_of_contents:!0,pagination_next:null,pagination_prev:null,id:"get-comments",title:"getComments"},d=void 0,p={},m=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("span",{style:{fontWeight:"normal",fontSize:".5em",color:"var(--ifm-color-secondary-darkest)"},children:"\xa0\u25cf\xa0"})}),f=e=>(0,s.jsxs)(s.Fragment,{children:["Specification",(0,s.jsx)("a",{className:"link",style:{fontSize:"1.5em",paddingLeft:"4px"},target:"_blank",href:e.url,title:"Specified by "+e.url,children:"\u2398"})]}),h=e=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("span",{className:e.class,children:e.text})}),g=[];function y(e){const n={code:"code",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,s.jsxs)(a.A,{tryIt:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(l.A,{kind:"query",operation:"getComments"})}),children:[(0,s.jsx)(o.A,{kind:"query",name:"getComments"}),(0,s.jsx)(n.p,{children:"Get many Comments, with optional scoping, sorting and pagination"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-graphql",children:"getComments(\n  pagination: PublicPagination\n  sorting: [CommentSorting!]\n  scope: GetCommentsScope\n): GetCommentsOutput!\n"})}),(0,s.jsx)(c.A,{kind:"query",operation:"getComments"})]})}function x(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(y,{...e})}):y(e)}},93290(e,n,t){t.d(n,{Cf:()=>f,Sh:()=>h});var r=t(5774),s=t(59811),i=t(86745);function a(e){if((0,r.bd)(e))return`${a(e.ofType)}!`;if((0,r.Fs)(e)){const n=e.ofType,t=(0,r.MR)(n),s=(0,r.bd)(n)?"!":"";return`[${t.name}${s}]`}return(0,r.MR)(e).name}function o(e){if((0,r.Fs)(e)){const n=(0,r.MR)(e.ofType);return(0,r.YQ)(n)?n:null}const n=(0,r.MR)(e);return(0,r.YQ)(n)?n:null}const l=["id","name","label","status","jobId","query","email"],c=["totalCount","page","nbPerPage","jobId","status"];function u(e,n){const t=e.getFields();return n.filter(e=>{const n=t[e];return n&&function(e){const n=(0,r.MR)(e);return(0,r.lg)(n)||(0,r.oF)(n)}(n.type)})}function d(e,n,t,r){const s=" ".repeat(r);if(t>=n.length)return function(e,n){const t=" ".repeat(n),r=u(e,l);return 0===r.length?`${t}__typename`:r.map(e=>`${t}${e}`).join("\n")}(e,r);const i=n[t],a=e.getFields()[i];if(!a)return`${s}__typename`;const c=o(a.type);if(!c)return`${s}__typename`;return`${s}${i} {\n${d(c,n,t+1,r+2)}\n${s}}`}function p(e,n){const t=u(e,l).map(e=>e);if("list"!==n.mode)return t.join("\n    ");const r=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(!r)return t.join("\n    ");const s=d(e,r.split("."),0,4),i=r.split(".")[0];return t.includes(i)||t.push(s),t.join("\n    ")}function m(e,n,t,s){const i=n.length>0?`${e}(${n.join(", ")})`:e,a=(0,r.MR)(t);if((0,r.lg)(a))return i;const l=function(e,n){const t=(0,r.MR)(e);if((0,r.lg)(t)||(0,r.oF)(t))return null;if(!t.getFields)return"__typename";if((0,r.Fs)(e)){const t=o(e);return t?p(t,n):"__typename"}const s=t.getFields();if(s.data){const e=u(t,c),r=o(s.data.type);if(r){const t=p(r,n);e.push(`data {\n    ${t}\n  }`)}else e.push("data");return e.join("\n    ")}return p(t,n)}(t,s)||"__typename";return`${i} {\n    ${l}\n  }`}function f(e,n,t){const r="mutation"===n?e.getMutationType():e.getQueryType(),o=r?.getFields()?.[t];if(!o)return null;const l=(0,i.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)}
1\n}`,variables:{},variablesJson:"{}"}}const u=[],d=[],p={};for(const i of o.args){u.push(`$${i.name}: ${a(i.type)}`),d.push(`${i.name}: $${i.name}`);const e=(0,s.t)(i);void 0!==e&&(p[i.name]=e)}return{query:`${n} ${c}(\n  ${u.join(",\n  ")}\n) {\n  ${m(t,d,o.type,l)}\n}`,variables:p,variablesJson:Object.keys(p).length>0?JSON.stringify(p,null,2):"{}"}}function h(e){return(0,r.bd)(e)}},59811(e,n,t){t.d(n,{cB:()=>c,q1:()=>l,t:()=>u});var r=t(5774);const s=["nameContains","name","question","folderPath","pathContains","ids","sourceId","sourceIds","tableIds","databaseId","schemaId","warehouseId","tableId"];function i(e,n){const t=e?.astNode?.directives?.find(e=>"example"===e.name?.value),s=t?.arguments?.find(e=>"value"===e.name?.value),i=s?.value?.value;if("string"==typeof i&&""!==i.trim())return function(e,n){const t=(0,r.MR)(n),s=e.trim();if(s.startsWith("[")||s.startsWith("{"))try{return JSON.parse(s)}catch{return e}if((0,r.oF)(t))return t.getValues().some(e=>e.name===s)?s:void 0;if("Int"===t?.name||"Float"===t?.name){const n=Number(s);return Number.isNaN(n)?e:n}if("Boolean"===t?.name){if("true"===s)return!0;if("false"===s)return!1}return e}(i,n)}function a(e,n){return e.endsWith("Scope")?s.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:s=0,argName:i=""}=n,a=(0,r.MR)(e),c=(0,r.bd)(e);if((0,r.lg)(a))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}}(a,t);if((0,r.oF)(a))return function(e,n=""){const t=(0,r.MR)(e);if(!(0,r.oF)(t))return null;const s=t.getValues().map(e=>e.name);return"sortingKey"===n&&s.includes("name")?"name":s.includes("ASC")?"ASC":s[0]??null}(e,t);if((0,r.Fs)(e)){const t=o(e.ofType,{...n,depth:s+1});return null==t?c?[]:void 0:[t]}if((0,r.qK)(a)){const n=l(e,s);return n||(c?{}:void 0)}return c?null:void 0}function l(e,n=0){if(n>5)return null;const t=(0,r.MR)(e);if(!(0,r.qK)(t))return null;if(t.name.endsWith("Scope"))return function(e){const n=e.getFields(),t=(n,t)=>i(t,t.type)??o(t.type,{argName:e.name,fieldName:n,depth:1});for(const r of s){if(!n[r])continue;const e=t(r,n[r]);if(void 0!==e)return{[r]:e}}for(const[r,s]of Object.entries(n)){const e=t(r,s);if(void 0!==e)return{[r]:e}}return null}(t);const l=t.name,c={};for(const[s,u]of Object.entries(t.getFields())){const e=(0,r.bd)(u.type),t=i(u,u.type),d=void 0!==t?t:o(u.type,{argName:l,fieldName:s,depth:n+1});void 0!==d&&((e||void 0!==t||a(l,s))&&(c[s]=d))}return Object.keys(c).length>0?c:null}function c(e,n=0){if(n>1)return null;const t=(0,r.MR)(e);if(!(0,r.YQ)(t))return null;const s=new Set(["id","name","label","status","jobId","totalCount","email","slug","lineageType"]),a={};for(const[l,c]of Object.entries(t.getFields())){const e=(0,r.MR)(c.type);if((0,r.Fs)(c.type)||(0,r.YQ)(e)&&!(0,r.lg)(e))continue;const t=i(c,c.type),u=void 0!==t?t:o(c.type,{fieldName:l,depth:n+1}),d=(0,r.bd)(c.type);void 0!==u&&((d||void 0!==t||s.has(l))&&(a[l]=u))}return Object.keys(a).length>0?a:null}function u(e){const n=(0,r.MR)(e.type),t=i(e,e.type);return void 0!==t?t:(0,r.bd)(e.type)||"pagination"===e.name||"sorting"===e.name||"scope"===e.name||"data"===e.name&&(0,r.qK)(n)?o(e.type,{argName:n.name}):void 0}},86745(e,n,t){function r(e){if(!e)return{mode:"unspecified",paths:[],tree:{}};const n=e.indexOf("### Allowed relations");if(-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 r=[...t.matchAll(/- `([^`]+)`/g)].map(e=>e[1]);return 0===r.length?{mode:"unspecified",paths:[],tree:{}}:{mode:"list",paths:r,tree:i(r)}}function s(e){if(!e)return"";const n=e.indexOf("### Allowed relations");return-1===n?e.trim():e.slice(0,n).trim()}function i(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:()=>s,b:()=>r})},14548(e,n,t){t.d(n,{A:()=>o});var r=t(96540),s=t(3897);function i(){return(0,r.useEffect)(()=>{(0,s.Cd)()},[]),null}var a=t(74848);function o({children:e,tryIt:n}){return(0,a.jsxs)("div",{className:"graphql-doc-layout",children:[(0,a.jsx)(i,{}),(0,a.jsx)("div",{className:"graphql-doc-main",children:e}),n?(0,a.jsx)("aside",{className:"graphql-doc-aside",children:n}):null]})}},73464(e,n,t){t.d(n,{A:()=>l});var r=t(96540),s=t(29813),i=t(74848);const a=r.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,i.jsx)(s.default,{fallback:(0,i.jsx)("div",{className:"graphql-explorer__loading",children:"Loading explorer\u2026"}),children:()=>(0,i.jsx)(r.Suspense,{fallback:(0,i.jsx)("div",{className:"graphql-explorer__loading",children:"Loading explorer\u2026"}),children:(0,i.jsx)(a,{operation:e,kind:n})})})}function l({operation:e,kind:n}){return(0,i.jsx)(o,{operation:e,kind:n})}},55719(e,n,t){t.d(n,{A:()=>i});t(96540);var r=t(34164),s=t(74848);function i({kind:e,name:n}){return(0,s.jsxs)("div",{className:"graphql__operation-endpoint","data-graphql-kind":e,children:[(0,s.jsx)("span",{className:(0,r.A)("graphql__operation-badge",`graphql__operation-badge--${e}`),children:e}),(0,s.jsx)("code",{className:"graphql__operation-name",children:n})]})}},17768(e,n,t){t.d(n,{A:()=>C});var r=t(96540),s=t(98180),i=t(14783),a=t(93187),o=t(5899),l=t(84466),c=t(5774),u=t(93356),d=t(93290),p=t(86745);function m(e){const n=(0,c.MR)(e);return(0,c.lg)(n)||(0,c.oF)(n)}function f(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 h(e){return{name:e.name,type:e.type,required:(0,d.Sh)(e.type),description:e.description,children:[]}}function g(e,{relationsMode:n,relationTree:t,depth:r=0}){if(!e||r>4)return[];const s=[];for(const i of Object.values(e.getFields())){if("__typename"===i.name)continue;if(m(i.type)){s.push(h(i));continue}if("none"===n||"unspecified"===n)continue;if(!t||!t[i.name])continue;const e=h(i),a=f(i.type);a&&(e.children=g(a,{relationsMode:"list",relationTree:t[i.name],depth:r+1})),s.push(e)}return s}function y(e,n){return function(e,n){const{mode:t,tree:r}=n,s=(0,c.MR)(e);if((0,c.lg)(s)||(0,c.oF)(s))return[];if((0,c.Fs)(e)){const n=(0,c.MR)(e.ofType);return(0,c.YQ)(n)?g(n,{relationsMode:t,relationTree:r,depth:0}):[]}if(!(0,c.YQ)(s))return[];const i=[];for(const a of Object.values(s.getFields())){if("__typename"===a.name)continue;const e=h(a),n=f(a.type);"data"===a.name&&n?(e.children=g(n,{relationsMode:t,relationTree:r,depth:0}),i.push(e)):m(a.type)?i.push(e):n&&"list"===t&&r[a.name]&&(e.children=g(n,{relationsMode:"list",relationTree:r[a.name],depth:0}),i.push(e))}return i}
1(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),r=t?.value?.value;return"string"!=typeof r||""===r.trim()?"general":r.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)(i.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,d.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 $({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 w({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)($,{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)(M,{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 M({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 C({kind:e,operation:n}){const{schema:t,error:i}=function(){const e=(0,s.Ay)("/graphql/public-schema.graphql"),[n,t]=(0,r.useState)(null),[i,a]=(0,r.useState)(null);return(0,r.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,u.I)(e))}).catch(e=>{n||a(e.message)}),()=>{n=!0}},[e]),{schema:n,error:i}}(),o=(0,r.useMemo)(()=>{if(!t)return null;const r="mutation"===e?t.getMutationType():t.getQueryType(),s=r?.getFields()?.[n];if(!s)return null;const i=s.args.map(e=>({name:e.name,type:e.type,required:(0,d.Sh)(e.type),description:e.description,children:N(e.type)})),a=(0,d.Cf)(t,e,n),o=(0,p.b)(s.description),l=y(s.type,o),c=(0,p.J)(s.description);return{args:i,example:a,allowedRelations:o,responseType:s.type,responseDescription:c,responseFields:l}},[t,e,n]);if(i)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)(w,{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)(a.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)(a.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)(w,{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]})]})]})}}
1,77242(e,n,t){t.d(n,{A:()=>p});var r=t(96540),s=t(90031),i=t(98180),a=t(93187),o=t(5774),l=t(93356),c=t(59811);function u(e,n,t){try{return function(e,n,t){const r=e.getType(n);if(!r)return null;let s=null;return"input"===t||(0,o.qK)(r)?s=(0,c.q1)(r,0,n):("object"===t||(0,o.YQ)(r))&&(s=(0,c.cB)(r)),s&&0!==Object.keys(s).length?JSON.stringify(s,null,2):null}((0,l.I)(e),n,t)}catch{return null}}var d=t(74848);function p(){const{frontMatter:e,metadata:n}=(0,s.u)(),t=(0,i.Ay)("/graphql/public-schema.graphql"),[o,l]=(0,r.useState)(null),[c,p]=(0,r.useState)(null),m=e.title,f=function(e=""){return e.includes("/03-inputs/")?"input":e.includes("/06-objects/")?"object":null}(n?.source);return(0,r.useEffect)(()=>{if(!m||!f)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=u(n,m,f);l(t)}).catch(n=>{e||p(n.message)}),()=>{e=!0}},[t,m,f]),c?(0,d.jsx)("p",{className:"graphql-op-error",children:"Could not load type example."}):o?(0,d.jsx)(a.default,{language:"json",className:"graphql-type-example__block",children:o}):null}},3897(e,n,t){t.d(n,{Cd:()=>l,bP:()=>i,hk:()=>a});const r="catalog-api-explorer-token";function s(e){if(!e)return;const n=[];for(let t=0;t<e.length;t+=1){const s=e.key(t);s===r&&n.push(s)}n.forEach(n=>e.removeItem(n))}function i(){if("undefined"==typeof window)return"";const e=sessionStorage.getItem(r);if(e)return e;const n=localStorage.getItem(r);return n?(sessionStorage.setItem(r,n),localStorage.removeItem(r),n):""}function a(e){"undefined"!=typeof window&&(e?sessionStorage.setItem(r,e):sessionStorage.removeItem(r),localStorage.removeItem(r))}let o=!1;function l(){"undefined"==typeof window||o||(o=!0,window.addEventListener("pagehide",e=>{e.persisted||"undefined"!=typeof window&&(s(sessionStorage),s(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.