gatsby-plugin-schema-export

1.1.33 • Public • Published

gatsby-plugin-schema-export

Exports the current Gatsby schema to a *.graphql file.

Installation

Install

pnpm add gatsby-plugin-schema-export

Without options

The generated schema will be written to generated/schema.graphql.

// gatsby-config.js
  ...
  plugins: [
    'gatsby-plugin-schema-export',
     ...
  ],

With options

The generated schema will be written to schema/gatsbySchema.graphql.

// gatsby-config.js
  ...
  plugins: [
    {
      resolve: `gatsby-plugin-schema-export`,
      options: {
        dest: `schemas/gatsbySchema.graphql`,
      },
    },
     ...
  ],

Usage

The generated schema will be written to generated/schema.graphql unless the dest option is set.

Package Sidebar

Install

npm i gatsby-plugin-schema-export

Weekly Downloads

117

Version

1.1.33

License

MIT

Unpacked Size

11.2 kB

Total Files

5

Last publish

Collaborators

  • amazeelabs