@magidoc/rollup-plugin-gql-schema
Version:
A Rollup and ViteJS plugin that allows to parse a GraphQL Schema from a target URL and save it to a target output folder, or to parse it from the disk and convert it to a desired format.
14 lines (9 loc) • 634 B
Markdown
A Rollup/ViteJS plugin that can both fetch or parse GraphQL schemas and store them locally.
> This plugin can be used in any project that uses Rollup/ViteJS, whether it is browser or NodeJS based.
When fetching the schema, configuration is available to set custom headers, url, method and output format.
When parsing the schema, it is possible to aggregate multiple schema parts into one file using glob patterns and/or custom file paths.
For more details on how to use this plugin, see the [documentation](https://magidoc.js.org/plugins/rollup-graphql-schema).