Rollup Fetch-GraphQL-Schema

standalone
plugin
rollup
vite

This rollup plugin fetches the GraphQL Schema required by Magidoc Plugins to build your website documentation. It performs a full GraphQL Introspection Query and stores the result on the file-system. This approach keeps your documentation independent from the actual API.

Install

#

First, add the module to your project.

Then, add the plugin to your Rollup/ViteJS configuration. Here is an example for a svelte.config.js .

Configuration

#

Configurations are available for the plugin to change the behavior of the introspection query. Here is the full configuration example and its default values.