UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

7 lines (6 loc) 418 B
import{indent as o}from"./indentation.js";function c(n,e,t,u,r){const m=o(t),i=o(t+1);return n.length===0?"":u>0?`( ${i}# ${r("graphql.arguments.here","Arguments Here")} ${m})`:e?g(n,m,i):a(n)}function a(n){return`(${n.map(l).join(", ")})`}function l(n){return`${n.name}: $${n.name}`}function g(n,e,t){return`( ${n.map(r=>p(r,t)).join(` `)} ${e})`}function p(n,e){return`${e}${l(n)}`}export{c as getArgumentsExample};