1"use strict";(globalThis.webpackChunkcoalesce_docs=globalThis.webpackChunkcoalesce_docs||[]).push([[2165],{43439(e,n,t){t.r(n),t.d(n,{Badge:()=>u,Bullet:()=>c,SpecifiedBy:()=>d,assets:()=>o,contentTitle:()=>l,default:()=>g,frontMatter:()=>a,metadata:()=>s,toc:()=>p});const s=JSON.parse('{"id":"catalog/api/general/types/enums/sorting-nulls-priority","title":"SortingNullsPriority","description":"The position of the nulls first/last, default: last","source":"@site/docs/catalog/api/12-general/11-types/02-enums/sorting-nulls-priority.mdx","sourceDirName":"catalog/api/12-general/11-types/02-enums","slug":"/catalog/api/general/types/enums/sorting-nulls-priority","permalink":"/docs/catalog/api/general/types/enums/sorting-nulls-priority","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"displayed_sidebar":"catalogApiSidebar","hide_table_of_contents":true,"pagination_next":null,"pagination_prev":null,"id":"sorting-nulls-priority","title":"SortingNullsPriority"},"sidebar":"catalogApiSidebar"}');var r=t(74848),i=t(28453);t(14548),t(55719),t(73464),t(17768),t(77242);const a={displayed_sidebar:"catalogApiSidebar",hide_table_of_contents:!0,pagination_next:null,pagination_prev:null,id:"sorting-nulls-priority",title:"SortingNullsPriority"},l=void 0,o={},c=()=>(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"})}),d=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"})]}),u=e=>(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{className:e.class,children:e.text})}),p=[{value:"Values",id:"values",level:3},{value:"<code>SortingNullsPriority.<b>FIRST</b></code>",id:"first",level:4},{value:"<code>SortingNullsPriority.<b>LAST</b></code>",id:"last",level:4},{value:"Member Of",id:"member-of",level:3}];function h(e){const n={a:"a",code:"code",h3:"h3",h4:"h4",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.p,{children:"The position of the nulls first/last, default: last"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-graphql",children:"enum SortingNullsPriority {\n FIRST\n LAST\n}\n"})}),"\n",(0,r.jsx)(n.h3,{id:"values",children:"Values"}),"\n",(0,r.jsx)(n.h4,{id:"first",children:(0,r.jsx)(n.a,{href:"#first",children:(0,r.jsxs)("code",{style:{fontWeight:"normal"},children:["SortingNullsPriority.",(0,r.jsx)("b",{children:"FIRST"})]})})}),"\n",(0,r.jsx)(n.p,{children:"Place null values at the beginning of sorted results"}),"\n",(0,r.jsx)(n.h4,{id:"last",children:(0,r.jsx)(n.a,{href:"#last",children:(0,r.jsxs)("code",{style:{fontWeight:"normal"},children:["SortingNullsPriority.",(0,r.jsx)("b",{children:"LAST"})]})})}),"\n",(0,r.jsx)(n.p,{children:"Place null values at the end of sorted results"}),"\n",(0,r.jsx)(n.h3,{id:"member-of",children:"Member Of"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/column-joins/types/inputs/column-join-sorting",children:(0,r.jsx)(n.code,{children:"ColumnJoinSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/columns/types/inputs/column-sorting",children:(0,r.jsx)(n.code,{children:"ColumnSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/comments/types/inputs/comment-sorting",children:(0,r.jsx)(n.code,{children:"CommentSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/dashboard-fields/types/inputs/dashboard-field-sorting",children:(0,r.jsx)(n.code,{children:"DashboardFieldSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/dashboards/types/inputs/dashboard-sorting",children:(0,r.jsx)(n.code,{children:"DashboardSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/data-products-marketplace/types/inputs/data-product-sorting",children:(0,r.jsx)(n.code,{children:"DataProductSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/pinned-assets/types/inputs/entities-link-sorting",children:(0,r.jsx)(n.code,{children:"EntitiesLinkSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/field-lineages/types/inputs/field-lineage-sorting",children:(0,r.jsx)(n.code,{children:"FieldLineageSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/lineages/types/inputs/lineage-sorting",children:(0,r.jsx)(n.code,{children:"LineageSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/ownerships/types/inputs/owner-label-sorting",children:(0,r.jsx)(n.code,{children:"OwnerLabelSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/sql-queries/types/inputs/query-sorting",children:(0,r.jsx)(n.code,{children:"QuerySorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/tables/types/inputs/table-sorting",children:(0,r.jsx)(n.code,{children:"TableSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/tags/types/inputs/tag-sorting",children:(0,r.jsx)(n.code,{children:"TagSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/catalog/api/terms-knowledge/types/inputs/term-sorting",children:(0,r.jsx)(n.code,{children:"TermSorting"})})," ",(0,r.jsx)(u,{class:"badge badge--secondary badge--relation",text:"input"})]}),"\n"]})]})}function g(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},93290(e,n,t){t.d(n,{Cf:()=>g,Sh:()=>f});var s=t(5774),r=t(59811),i=t(86745);function a(e){if((0,s.bd)(e))return`${a(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 l(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 o=["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,o);return 0===s.length?`${t}__typename`:s.map(e=>`${t}${e}`).join("\n")}(e,s);const i=n[t],a=e.getFields()[i];if(!a)return`${r}__typename`;const c=l(a.type);if(!c)return`${r}__typename`;return`${r}${i} {\n${u(c,n,t+1,s+2)}\n${r}}`}function p(e,n){const t=d(e,o).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),i=s.split(".")[0];return t.includes(i)||t.push(r),t.join("\n ")}function h(e,n,t,r){const i=n.length>0?`${e}(${n.join(", ")})`:e,a=(0,s.MR)(t);if((0,s.lg)(a))return i;const o=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=l(e);return t?p(t,n):"__typename"}const r=t.getFields();if(r.data){const e=d(t,c),s=l(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`${i} {\n ${o}\n }`}function g(e,n,t){const s="mutation"===n?e.getMutationType():e.getQueryType(),l=s?.getFields()?.[t];if(!l)return null;const o=(0,i.b)(l.description),c=t.charAt(0).toUpperCase()+t.slice(1);if(!l.args.length){return{query:`${n} ${c} {\n ${h(t,[],l.type,o)}\n}`,variables:{},variablesJson:"{}"}}const d=[],u=[],p={};for(const i of l.args){d.push(`$${i.name}: ${a(i.type)}`),u.push(`${i.name}: $${i.name}`);const e=(0,r.t)(i);void 0!==e&&(p[i.name]=e)}return{query:`${n} ${c}(\n ${d.join(",\n ")}\n) {\n ${h(t,u,l.type,o)}\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:()=>o,t:()=>d});var s=t(5774);
1const r=["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),r=t?.arguments?.find(e=>"value"===e.name?.value),i=r?.value?.value;if("string"==typeof i&&""!==i.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}(i,n)}function a(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 l(e,n={}){const{fieldName:t="",depth:r=0,argName:i=""}=n,a=(0,s.MR)(e),c=(0,s.bd)(e);if((0,s.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,s.oF)(a))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=l(e.ofType,{...n,depth:r+1});return null==t?c?[]:void 0:[t]}if((0,s.qK)(a)){const n=o(e,r);return n||(c?{}:void 0)}return c?null:void 0}function o(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)=>i(t,t.type)??l(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 o=t.name,c={};for(const[r,d]of Object.entries(t.getFields())){const e=(0,s.bd)(d.type),t=i(d,d.type),u=void 0!==t?t:l(d.type,{argName:o,fieldName:r,depth:n+1});void 0!==u&&((e||void 0!==t||a(o,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"]),a={};for(const[o,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=i(c,c.type),d=void 0!==t?t:l(c.type,{fieldName:o,depth:n+1}),u=(0,s.bd)(c.type);void 0!==d&&((u||void 0!==t||r.has(o))&&(a[o]=d))}return Object.keys(a).length>0?a:null}function d(e){const n=(0,s.MR)(e.type),t=i(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)?l(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");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 s=[...t.matchAll(/- `([^`]+)`/g)].map(e=>e[1]);return 0===s.length?{mode:"unspecified",paths:[],tree:{}}:{mode:"list",paths:s,tree:i(s)}}function r(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:()=>r,b:()=>s})},14548(e,n,t){t.d(n,{A:()=>l});var s=t(96540),r=t(3897);function i(){return(0,s.useEffect)(()=>{(0,r.Cd)()},[]),null}var a=t(74848);function l({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:()=>o});var s=t(96540),r=t(29813),i=t(74848);const a=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 l({operation:e,kind:n}){return(0,i.jsx)(r.default,{fallback:(0,i.jsx)("div",{className:"graphql-explorer__loading",children:"Loading explorer\u2026"}),children:()=>(0,i.jsx)(s.Suspense,{fallback:(0,i.jsx)("div",{className:"graphql-explorer__loading",children:"Loading explorer\u2026"}),children:(0,i.jsx)(a,{operation:e,kind:n})})})}function o({operation:e,kind:n}){return(0,i.jsx)(l,{operation:e,kind:n})}},55719(e,n,t){t.d(n,{A:()=>i});t(96540);var s=t(34164),r=t(74848);function i({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),i=t(14783),a=t(93187),l=t(5899),o=t(84466),c=t(5774),d=t(93356),u=t(93290),p=t(86745);function h(e){const n=(0,c.MR)(e);return(0,c.lg)(n)||(0,c.oF)(n)}function g(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 m(e,{relationsMode:n,relationTree:t,depth:s=0}){if(!e||s>4)return[];const r=[];for(const i of Object.values(e.getFields())){if("__typename"===i.name)continue;if(h(i.type)){r.push(f(i));continue}if("none"===n||"unspecified"===n)continue;if(!t||!t[i.name])continue;const e=f(i),a=g(i.type);a&&(e.children=m(a,{relationsMode:"list",relationTree:t[i.name],depth:s+1})),r.push(e)}return r}function x(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)?m(n,{relationsMode:t,relationTree:s,depth:0}):[]}if(!(0,c.YQ)(r))return[];const i=[];for(const a of Object.values(r.getFields())){if("__typename"===a.name)continue;const e=f(a),n=g(a.type);"data"===a.name&&n?(e.children=m(n,{relationsMode:t,relationTree:s,depth:0}),i.push(e)):h(a.type)?i.push(e):n&&"list"===t&&s[a.name]&&(e.children=m(n,{relationsMode:"list",relationTree:s[a.name],depth:0}),i.push(e))}return i}
1(e,n)}var y=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 v({type:e}){const n=b((0,c.MR)(e)),t=j(e);return n?(0,y.jsx)(i.default,{to:n,children:(0,y.jsx)("code",{children:t})}):t}function _({required:e}){return void 0===e?null:e?(0,y.jsx)("span",{className:"openapi-schema__required",children:"required"}):null}function S({name:e,type:n,required:t}){return(0,y.jsxs)("span",{className:"openapi-schema__container",children:[e?(0,y.jsx)("strong",{className:"openapi-schema__property",children:e}):null,(0,y.jsxs)("span",{className:"openapi-schema__name",children:[e?" ":null,(0,y.jsx)(v,{type:n})]}),void 0!==t?(0,y.jsx)("span",{className:"openapi-schema__divider"}):null,(0,y.jsx)(_,{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 q({text:e}){return e?(0,y.jsx)("div",{style:{marginTop:".5rem",marginBottom:".5rem"},children:(0,y.jsx)(o.default,{children:e})}):null}function F({name:e,type:n,required:t}){return(0,y.jsx)("summary",{children:(0,y.jsx)(S,{name:e,type:n,required:t})})}function w({children:e}){return e?(0,y.jsx)("div",{style:{textAlign:"left",marginLeft:"1rem"},children:(0,y.jsx)("div",{style:{marginTop:"1rem",marginBottom:"1rem"},children:e})}):null}function $({title:e="Schema",description:n,children:t}){return(0,y.jsxs)(l.default,{className:"openapi-markdown__details response","data-collapsed":!1,open:!0,summary:(0,y.jsx)("summary",{children:(0,y.jsx)("strong",{className:"openapi-markdown__details-summary-response",children:e})}),children:[n?(0,y.jsx)(w,{children:n}):null,(0,y.jsx)("div",{className:"openapi-schema__list",style:{marginLeft:"1rem"},children:t})]})}function T({fields:e}){return e?.length?e.map(e=>(0,y.jsx)(k,{field:e},e.name)):null}function R({field:e}){return(0,y.jsx)("div",{className:"openapi-schema__list-item",children:(0,y.jsxs)("div",{children:[(0,y.jsx)(S,{name:e.name,type:e.type,required:e.required}),e.description?(0,y.jsx)(o.default,{children:e.description}):null]})})}function k({field:e}){return e.children?.length>0?(0,y.jsx)("div",{className:"openapi-schema__list-item",children:(0,y.jsx)(l.default,{className:"openapi-markdown__details",summary:(0,y.jsx)(F,{name:e.name,type:e.type,required:e.required}),children:(0,y.jsxs)("div",{style:{marginLeft:"1rem"},children:[(0,y.jsx)(q,{text:e.description}),(0,y.jsx)(T,{fields:e.children})]})})}):(0,y.jsx)(R,{field:e})}function M({kind:e,operation:n}){const{schema:t,error:i}=function(){const e=(0,r.Ay)("/graphql/public-schema.graphql"),[n,t]=(0,s.useState)(null),[i,a]=(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||a(e.message)}),()=>{n=!0}},[e]),{schema:n,error:i}}(),l=(0,s.useMemo)(()=>{if(!t)return null;
1const s="mutation"===e?t.getMutationType():t.getQueryType(),r=s?.getFields()?.[n];if(!r)return null;const i=r.args.map(e=>({name:e.name,type:e.type,required:(0,u.Sh)(e.type),description:e.description,children:N(e.type)})),a=(0,u.Cf)(t,e,n),l=(0,p.b)(r.description),o=x(r.type,l),c=(0,p.J)(r.description);return{args:i,example:a,allowedRelations:l,responseType:r.type,responseDescription:c,responseFields:o}},[t,e,n]);if(i)return(0,y.jsx)("p",{className:"graphql-op-error",children:"Could not load schema details."});if(!l)return null;const o=l.responseDescription||"none"===l.allowedRelations.mode||"unspecified"===l.allowedRelations.mode&&l.responseFields.length>0;return(0,y.jsxs)("div",{className:"graphql-op-schema",children:[l.args.length>0?(0,y.jsxs)("section",{className:"graphql-op-section",children:[(0,y.jsx)("h2",{children:"Arguments"}),(0,y.jsx)($,{title:"Schema",children:(0,y.jsx)(T,{fields:l.args})})]}):null,l.example?(0,y.jsxs)("section",{className:"graphql-op-section",children:[(0,y.jsx)("h2",{children:"Example"}),(0,y.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,y.jsx)("h3",{className:"graphql-op-example__heading",children:"Query"}),(0,y.jsx)(a.default,{language:"graphql",className:"graphql-op-example__block",children:l.example.query}),"{}"!==l.example.variablesJson?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("h3",{className:"graphql-op-example__heading",children:"Variables"}),(0,y.jsx)(a.default,{language:"json",className:"graphql-op-example__block",children:l.example.variablesJson})]}):null]}):null,(0,y.jsxs)("section",{className:"graphql-op-section",children:[(0,y.jsx)("h2",{children:"Response"}),(0,y.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,y.jsx)("code",{children:"getColumns"})," or ",(0,y.jsx)("code",{children:"getTables"})," when you need related data not shown here."]}),(0,y.jsxs)($,{title:"Schema",description:o?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(q,{text:l.responseDescription}),"none"===l.allowedRelations.mode?(0,y.jsx)(q,{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"===l.allowedRelations.mode&&l.responseFields.length>0?(0,y.jsx)(q,{text:"Nested relations are not documented for this operation. Only simple fields are listed below."}):null]}):null,children:[(0,y.jsx)(R,{field:{name:void 0,type:l.responseType,required:void 0,description:void 0}}),l.responseFields.length>0?(0,y.jsx)(T,{fields:l.responseFields}):null]})]})]})}},77242(e,n,t){t.d(n,{A:()=>p});var s=t(96540),r=t(90031),i=t(98180),a=t(93187),l=t(5774),o=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,l.qK)(s)?r=(0,c.q1)(s,0,n):("object"===t||(0,l.YQ)(s))&&(r=(0,c.cB)(s)),r&&0!==Object.keys(r).length?JSON.stringify(r,null,2):null}((0,o.I)(e),n,t)}catch{return null}}var u=t(74848);function p(){const{frontMatter:e,metadata:n}=(0,r.u)(),t=(0,i.Ay)("/graphql/public-schema.graphql"),[l,o]=(0,s.use
1State)(null),[c,p]=(0,s.useState)(null),h=e.title,g=function(e=""){return e.includes("/03-inputs/")?"input":e.includes("/06-objects/")?"object":null}(n?.source);return(0,s.useEffect)(()=>{if(!h||!g)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,h,g);o(t)}).catch(n=>{e||p(n.message)}),()=>{e=!0}},[t,h,g]),c?(0,u.jsx)("p",{className:"graphql-op-error",children:"Could not load type example."}):l?(0,u.jsx)(a.default,{language:"json",className:"graphql-type-example__block",children:l}):null}},3897(e,n,t){t.d(n,{Cd:()=>o,bP:()=>i,hk:()=>a});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 i(){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 a(e){"undefined"!=typeof window&&(e?sessionStorage.setItem(s,e):sessionStorage.removeItem(s),localStorage.removeItem(s))}let l=!1;function o(){"undefined"==typeof window||l||(l=!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.