@redocly/graphql-docs
Version:
Redocly GraphQL docs
2 lines (1 loc) • 319 B
JavaScript
import{getNamedType as t,isScalarType as a}from"graphql";import{useSettings as i}from"../../settings/index.js";function o(e,r){const n=i().fieldExpandLevel;return(!!e.args?.length||!a(t(e.type)))&&r<n}function u(e,r,{expandedTypes:n}){return o(e,r)?!n:!0}export{o as useIsFieldExpandable,u as useShowExpandableBorder};