api

package
v0.17.88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 10 Imported by: 189

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(cfg *config.Config, option ...Option) error

Generate generates GraphQL code based on the provided config.

func GenerateIncremental added in v0.17.88

func GenerateIncremental(
	cfg *config.Config,
	changedSchemas []string,
	verbose bool,
	option ...Option,
) error

GenerateIncremental generates code only for schemas affected by changes. changedSchemas should contain paths to schema files that have changed (e.g., from git diff). If empty, performs full generation. Use verbose to enable detailed logging of what's being regenerated.

Types

type Option

type Option func(cfg *config.Config, plugins *[]plugin.Plugin)

func AddPlugin

func AddPlugin(p plugin.Plugin) Option

func NoPlugins

func NoPlugins() Option

func PrependPlugin added in v0.16.0

func PrependPlugin(p plugin.Plugin) Option

PrependPlugin prepends plugin any existing plugins

func ReplacePlugin added in v0.15.0

func ReplacePlugin(p plugin.Plugin) Option

ReplacePlugin replaces any existing plugin with a matching plugin name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL