Generates Markdown documentation from a GraphQL schema, supporting introspection URLs, GraphQL files, JSON introspection results, and JS modules exporting GraphQLSchema. Version 7.3.0 requires Node >=14 and peer dependency graphql ^14.0.2 || ^15.0.0 || ^16.0.0. Offers CLI with options like --title, --no-toc, --toc-fields, --prologue, --epilogue, --heading-level, and --update-file for embedding in existing Markdown. Steady release cadence; lighter-weight alternative to graphql-docs.
npm install graphql-markdownNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generate Markdown documentation from a GraphQL schema defined in code, showing async usage and default export.
Await the result of the imported function: const markdown = await graphqlMarkdown({ schema });Use const graphqlMarkdown = require('graphql-markdown').default; or switch to ESM import.Wrap schema in an object: graphqlMarkdown({ schema })Add the markers to your Markdown file before running the command.
Verify the endpoint works with a tool like GraphiQL.
Change to const graphqlMarkdown = require('graphql-markdown').default;Run npm install graphql-markdown --save-dev
Call graphqlMarkdown({ schema })Check URL, network connectivity, and CORS settings.