1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9707],{21930:function(i,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/graphql-js/error",function(){return r(91986)}])},91986:function(i,s,r){"use strict";r.r(s),r.d(s,{useTOC:function(){return t}});var h=r(52676),e=r(92937),n=r(45043),l=r(79428),a=r(41751);function t(i){let s={code:"code",...(0,l.a)()};return[{value:"Overview",id:"overview",depth:2},{value:"Errors",id:"errors",depth:2},{value:(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(s.code,{children:"GraphQLError"})}),id:"graphqlerror",depth:3},{value:(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(s.code,{children:"syntaxError"})}),id:"syntaxerror",depth:3},{value:(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(s.code,{children:"locatedError"})}),id:"locatederror",depth:3},{value:(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(s.code,{children:"formatError"})}),id:"formaterror",depth:3}]}s.default=(0,e.c)(function(i){let{toc:s=t(i)}=i,r={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",span:"span",...(0,l.a)(),...i.components};return(0,h.jsxs)(h.Fragment,{children:["\n",(0,h.jsx)(r.h1,{children:(0,h.jsx)(r.code,{children:"graphql/error"})}),"\n",(0,h.jsxs)(r.p,{children:["The ",(0,h.jsx)(r.code,{children:"graphql/error"})," module is responsible for creating and formatting\nGraphQL errors. You can import either from the ",(0,h.jsx)(r.code,{children:"graphql/error"})," module, or from the root ",(0,h.jsx)(r.code,{children:"graphql"})," module. For example:"]}),"\n",(0,h.jsx)(r.pre,{icon:a.Dr,tabIndex:"0","data-language":"js","data-word-wrap":"",children:(0,h.jsxs)(r.code,{children:[(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#C2F653"},children:"import"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:" {"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#E1E4E8"},children:" GraphQLError"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:" }"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#C2F653"},children:" from"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#9ECBFF"},children:' "'}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#609A06","--shiki-dark":"#9ECBFF"},children:"graphql"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#9ECBFF"},children:'"'}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#9FA88A","--shiki-light-font-style":"italic","--shiki-dark":"#737373","--shiki-dark-font-style":"inherit"},children:" // ES6"})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#F97583"},children:"var"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:" {"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#E1E4E8"},children:" GraphQLError"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:" }"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:" ="}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" require"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#CFD3C5"},children:"("}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#9ECBFF"},children:'"'}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#609A06","--shiki-dark":"#9ECBFF"},children:"graphql"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#9ECBFF"},children:'"'}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#CFD3C5"},children:") "}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#9FA88A","--shiki-light-font-style":"italic","--shiki-dark":"#737373","--shiki-dark-font-style":"inherit"},children:"// CommonJS"})]})]})}),"\n",(0,h.jsx)(r.h2,{id:s[0].id,children:s[0].value}),"\n",(0,h.jsxs)("ul",{className:"apiIndex",children:[(0,h.jsx)("li",{children:(0,h.jsx)("a",{href:"#graphqlerror",children:(0,h.jsxs)(r.p,{children:[(0,h.jsx)(r.code,{children:"class GraphQLError"})," A representation of an error that occurred within GraphQL."]})})}),(0,h.jsx)("li",{children:(0,h.jsx)("a",{href:"#syntaxerror",children:(0,h.jsxs)(r.p,{children:[(0,h.jsx)(r.code,{children:"function syntaxError"})," Produces a GraphQLError representing a syntax error."]})})}),(0,h.jsx)("li",{children:(0,h.jsx)("a",{href:"#locatedError",children:(0,h.jsxs)(r.p,{children:[(0,h.jsx)(r.code,{children:"function locatedError"})," Produces a new GraphQLError aware of the location responsible for the error."]})})}),(0,h.jsx)("li",{children:(0,h.jsx)("a",{href:"#formaterror",children:(0,h.jsxs)(r.p,{children:[(0,h.jsx)(r.code,{children:"function formatError"})," Format an error according to the rules described by the Response Format."]})})})]}),"\n",(0,h.jsx)(r.h2,{id:s[1].id,children:s[1].value}),"\n",(0,h.jsx)(r.h3,{id:s[2].id,children:s[2].value}),"\n",(0,h.jsx)(r.pre,{icon:a.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"",children:(0,h.jsxs)(r.code,{children:[(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#F97583"},children:"class"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" GraphQLError"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#F97583"},children:" extends"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" Error"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:" {"})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#F97583"},children:" constructor"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:"("})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" message"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#1976D2","--shiki-dark":"#FF99E0"},children:" string"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:","})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" nodes"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:"?:"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#1976D2","--shiki-dark":"#FF99E0"},children:" any"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#CFD3C5"},children:"[]"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:","})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" stack"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:"?:"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#1976D2","--shiki-dark":"#FF99E0"},children:" string"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:","})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" source"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:"?:"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" Source"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:","})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" positions"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:"?:"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#1976D2","--shiki-dark":"#FF99E0"},children:" number"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#CFD3C5"},children:"[]"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:","})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" originalError"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:"?:"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" Error"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:","})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" extensions"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:"?:"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:" {"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#CFD3C5"},children:" ["}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:"key"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#1976D2","--shiki-dark":"#FF99E0"},children:" string"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#CFD3C5"},children:"]"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" mixed"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:" }"})]}),"\n",(0,h.jsx)(r.span,{children:(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:" )"})}),"\n",(0,h.jsx)(r.span,{children:(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:"}"})})]})}),"\n",(0,h.jsxs)(r.p,{children:["A representation of an error that occurred within GraphQL. Contains\ninformation about where in the query the error occurred for debugging. Most\ncommonly constructed with ",(0,h.jsx)(r.code,{children:"locatedError"})," below."]}),"\n",(0,h.jsx)(r.h3,{id:s[3].id,children:s[3].value}),"\n",(0,h.jsx)(r.pre,{icon:a.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"",children:(0,h.jsxs)(r.code,{children:[(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#F97583"},children:"function"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" syntaxError"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:"("})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" source"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" Source"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:","})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" position"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#1976D2","--shiki-dark":"#FF99E0"},children:" number"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:","})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" description"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#1976D2","--shiki-dark":"#FF99E0"},children:" string"})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:")"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" GraphQLError"})]})]})}),"\n",(0,h.jsx)(r.p,{children:"Produces a GraphQLError representing a syntax error, containing useful\ndescriptive information about the syntax errorâs position in the source."}),"\n",(0,h.jsx)(r.h3,{id:s[4].id,children:s[4].value}),"\n",(0,h.jsx)(r.pre,{icon:a.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"",children:(0,h.jsx)(r.code,{children:(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#F97583"},children:"function"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" locatedError"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:"("}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:"error"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" Error"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:","}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" nodes"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#1976D2","--shiki-dark":"#FF99E0"},children:" any"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#CFD3C5"},children:"[]"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:")"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" GraphQLError"})]})})}),"\n",(0,h.jsx)(r.p,{children:"Given an arbitrary Error, presumably thrown while attempting to execute a\nGraphQL operation, produce a new GraphQLError aware of the location in the\ndocument responsible for the original Error."}),"\n",(0,h.jsx)(r.h3,{id:s[5].id,children:s[5].value}),"\n",(0,h.jsx)(r.pre,{icon:a.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"",children:(0,h.jsxs)(r.code,{children:[(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#F97583"},children:"function"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" formatError"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:"("}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:"error"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" GraphQLError"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:")"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" GraphQLFormattedError"})]}),"\n",(0,h.jsx)(r.span,{children:" "}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#F97583"},children:"type"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" GraphQLFormattedError"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:" ="}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:" {"})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" message"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#1976D2","--shiki-dark":"#FF99E0"},children:" string"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:","})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" locations"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light"
1:"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" GraphQLErrorLocation"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#CFD3C5"},children:"[]"})]}),"\n",(0,h.jsx)(r.span,{children:(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:"};"})}),"\n",(0,h.jsx)(r.span,{children:" "}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#F97583"},children:"type"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#0E0F0B","--shiki-dark":"#F3F4F0"},children:" GraphQLErrorLocation"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:" ="}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:" {"})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" line"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#1976D2","--shiki-dark":"#FF99E0"},children:" number"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:","})]}),"\n",(0,h.jsxs)(r.span,{children:[(0,h.jsx)(r.span,{style:{"--shiki-light":"#24292EFF","--shiki-dark":"#DBF6A2"},children:" column"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#E10198","--shiki-dark":"#ECFAD1"},children:":"}),(0,h.jsx)(r.span,{style:{"--shiki-light":"#1976D2","--shiki-dark":"#FF99E0"},children:" number"})]}),"\n",(0,h.jsx)(r.span,{children:(0,h.jsx)(r.span,{style:{"--shiki-light":"#6E7557","--shiki-dark":"#6E7557"},children:"};"})})]})}),"\n",(0,h.jsx)(r.p,{children:"Given a GraphQLError, format it according to the rules described by the\nResponse Format, Errors section of the GraphQL Specification."})]})},"/graphql-js/error",{filePath:"src/pages/graphql-js/error.mdx",timestamp:1789481543e3,pageMap:n.v,frontMatter:{title:"graphql/error"},title:"graphql/error"},"undefined"==typeof RemoteContent?t:RemoteContent.useTOC)}},function(i){i.O(0,[3556,5043,2888,9774,179],function(){return i(i.s=21930)}),_N_E=i.O()}]);
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.