1.0.3 • Published 3 years ago

type-graphql-to-md v1.0.3

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

type-graphql-to-md

npm version Build Status

Make a markdown file for type-graphql spec

Requirement

  • TypeGraphQL

Example

Refer src/markdown.spec.ts

import { buildSchema } from 'type-graphql';

// you should call buildSchema function from type-graphql first
await buildSchema({ resolvers: [SampleResolver], });
await exportToMarkdown('API Spec', 'spec.md');

Test

yarn test