UNPKG

@gqlts/cli

Version:

Generate a client sdk from your GraphQl API

7 lines (5 loc) 229 B
import { RenderContext } from '../common/RenderContext'; import { GraphQLSchema, printSchema } from 'graphql'; export function renderSchema(schema: GraphQLSchema, ctx: RenderContext) { ctx.addCodeBlock(printSchema(schema)); }