PageSourceSearch

https://074c6ee9.graphql-eslint.pages.dev/_next/static/chunks/page…/unique-operation-types-2badba79ac246d6d.js

js graphql-eslint.pages.dev collected 2026-10-03 05:13:27 UTC 2,838 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5704],{4447:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/rules/unique-operation-types",function(){return s(53837)}])},53837:function(e,n,s){"use strict";s.r(n);var i=s(39324),r=s(71209),t=s(35250),l=s(16913),o=s(47160);function a(e){var n=Object.assign({h1:"h1",code:"code",p:"p",ul:"ul",li:"li",a:"a",blockquote:"blockquote",h2:"h2"},(0,o.ah)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{children:(0,t.jsx)(n.code,{children:"unique-operation-types"})}),"\n",(0,t.jsxs)(n.p,{children:["✅ The ",(0,t.jsx)(n.code,{children:'"extends": "plugin:@graphql-eslint/schema-recommended"'})," property in a configuration file\nenables this rule."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Category: ",(0,t.jsx)(n.code,{children:"Schema"})]}),"\n",(0,t.jsxs)(n.li,{children:["Rule name: ",(0,t.jsx)(n.code,{children:"@graphql-eslint/unique-operation-types"})]}),"\n",(0,t.jsxs)(n.li,{children:["Requires GraphQL Schema: ",(0,t.jsx)(n.code,{children:"false"}),"\n",(0,t.jsx)(n.a,{href:"/docs/getting-started#extended-linting-rules-with-graphql-schema",children:"ℹ️"})]}),"\n",(0,t.jsxs)(n.li,{children:["Requires GraphQL Operations: ",(0,t.jsx)(n.code,{children:"false"}),"\n",(0,t.jsx)(n.a,{href:"/docs/getting-started#extended-linting-rules-with-siblings-operations",children:"ℹ️"})]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"A GraphQL document is only valid if it has only one type per operation."}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["This rule is a wrapper around a ",(0,t.jsx)(n.code,{children:"graphql-js"})," validation function."]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"resources",children:"Resources"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueOperationTypesRule.ts",children:"Rule source"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://github.com/graphql/graphql-js/tree/main/src/validation/__tests__/UniqueOperationTypesRule-test.ts",children:"Test source"})}),"\n"]})]})}s(8850),n.default=(0,l.j)({MDXContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign({},(0,o.ah)(),e.components).wrapper;return n?(0,t.jsx)(n,(0,r._)((0,i._)({},e),{children:(0,t.jsx)(a,(0,i._)({},e))})):a(e)},pageOpts:{filePath:"src/pages/rules/unique-operation-types.md",route:"/rules/unique-operation-types",headings:[{depth:1,value:"unique-operation-types",id:"unique-operation-types"},{depth:2,value:"Resources",id:"resources"}],timestamp:1673726257e3,title:"unique-operation-types"},pageNextRoute:"/rules/unique-operation-types"})}},function(e){e.O(0,[6913,9774,2888,179],function(){return e(e.s=4447)}),_N_E=e.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.