UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

2 lines (1 loc) 392 B
import{TypeGroup as n}from"../../../schema/index.js";const o=new Set(["Int","Float","String","Boolean","ID"]),i=new Set(["skip","include","deprecated","specifiedBy","oneOf"]);function s(e,t){return t===n.scalars?o.has(e.name):t===n.directives?i.has(e.name):!1}function a(e,t,r){return r||!s(e,t)}export{i as BUILTIN_DIRECTIVES,o as BUILTIN_SCALARS,s as isBuiltInItem,a as shouldIncludeItem};