Converts a GraphQL JSON schema to a markdown format
Summary
Functions
Renders the markdown and writes it into :output_dir (default: the
current directory). Returns the list of files written.
Renders the markdown in memory and returns it keyed by filename.
Types
@type error() :: :invalid_schema | File.posix() | Jason.DecodeError.t()
Rendered pages, keyed by filename (for example "graphql_schema.md").
Functions
Renders the markdown and writes it into :output_dir (default: the
current directory). Returns the list of files written.
Files are written only after every page has been rendered, so a failure never leaves a partially written file behind.
Renders the markdown in memory and returns it keyed by filename.
Nothing is written to disk. Use this to embed the generator in your own pipeline or to inspect the output in tests.
Accepts the same options as generate/1 except :output_dir.