@graphql-markdown/printer-legacy
v1.19.1
Published
GraphQL-Markdown legacy Docusaurus printer.
Readme
@graphql-markdown/printer-legacy
Legacy Docusaurus-flavored MDX printer for GraphQL-Markdown. Converts GraphQL schema types into MDX pages, and is the printer used by default when no formatter is configured. New setups should prefer a formatter preset from @graphql-markdown/formatters; this package is kept for backward compatibility with existing Docusaurus configurations and for customDirective-based decorators.
Installation
npm install @graphql-markdown/printer-legacyUsage
printer-legacy is typically consumed indirectly through @graphql-markdown/core, which builds a Printer instance from the resolved configuration. It can also be used directly:
import { Printer } from "@graphql-markdown/printer-legacy";
await Printer.init(schema, baseURL, options);
const page = await Printer.printType("query", queryType, options);Custom directive decorators
import { buildCustomDirectiveDecorators } from "@graphql-markdown/printer-legacy";Documentation
License
GraphQL-Markdown packages are 100% free and open-source, under the MIT license.
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest, you'll be creating employment for local families and restoring wildlife habitats.
