Skip to content

GraphQL Codegen

Enabled

This plugin is enabled if there’s a match in "dependencies" or "devDependencies" in package.json:

  • ^@graphql-codegen\/

  • graphql-config

Default configuration

If this plugin is enabled, the following configuration is added automatically:

{
"graphql-codegen": {
"config": [
"package.json",
"codegen.{json,yml,yaml,js,ts}",
".codegenrc.{json,yml,yaml,js,ts}",
"codegen.config.js",
".graphqlrc",
".graphqlrc.{json,yml,yaml,toml,js,ts}",
"graphql.config.{json,yml,yaml,toml,js,cjs,ts}"
]
}
}

Depending on local configuration, plugins may modify the defaults as shown.

Custom config or entry options override default values, they are not merged.

See Plugins for more details about plugins and their entry and config options.

Generated from source

This page was generated from the graphql-codegen plugin source code.

ISC License © 2024 Lars Kappert