Skip to content

Update GraphQL Codegen configuration docs#1431

Merged
Code-Hex merged 2 commits intomainfrom
fix/readme
Apr 25, 2026
Merged

Update GraphQL Codegen configuration docs#1431
Code-Hex merged 2 commits intomainfrom
fix/readme

Conversation

@Code-Hex
Copy link
Copy Markdown
Owner

What changed

This updates the README examples to use codegen.ts, which is what GraphQL Code Generator documents first now. The examples keep validation plugin options on the plugin entry, while shared Codegen options stay on the output config.

YAML is still supported. I moved the old-style YAML examples into docs/yaml-configuration.md and linked it from the README so existing projects are not left guessing.

Notes

The quick start uses zodv4 as the concrete example. The docs now call out that users should install the validator they actually use and change schema to yup, zod, myzod, or valibot as needed.

Validation

  • git diff --check
  • graphql-codegen --config codegen.ts against a temporary schema using the README quick-start shape
  • npm pack --dry-run to confirm docs/yaml-configuration.md is included in the package

@Code-Hex Code-Hex merged commit 22890f6 into main Apr 25, 2026
@Code-Hex Code-Hex deleted the fix/readme branch April 25, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant