UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

2 lines (1 loc) 452 B
import{getNamedOutputType as s}from"../../schema/index.js";import{getArgumentsExample as x}from"./arguments-example.js";import{indent as E}from"./indentation.js";import{getSelectionSetExample as $}from"./selection-set/selection-set-example.js";const a=({field:e,multilineArguments:m,indentation:t,translate:o,maxLevel:r,level:p=0})=>{const g=x(e.args,m,t,p,o),c=$(s(e.type),m,t,r,p,a,o);return`${E(t)}${e.name}${g} ${c}`};export{a as getFieldExample};