All Presets

GraphQL Code Generator also support presets - which is a way to manipulate and effect the execution of plugins.

Presets are still an experimental feature in GraphQL Code Generator.

Available Presets

NamePurposePackage Name & Docs
near-operation-fileGenerates operation code near the source file@graphql-codegen/near-operation-file-preset
import-typesAllow you to separate base types declarations and the operations that uses it@graphql-codegen/import-types