Skip to content

GraphQL Codegen April 2026 update#79

Draft
eddeee888 wants to merge 4 commits intomainfrom
add-gcg-major-post
Draft

GraphQL Codegen April 2026 update#79
eddeee888 wants to merge 4 commits intomainfrom
add-gcg-major-post

Conversation

@eddeee888
Copy link
Copy Markdown
Collaborator

TODO

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 6, 2026

title: GraphQL Codegen Update, April 2026 - Operations and Client Preset v6
authors: eddeee888
tags: [graphql, graphql-codegen, client, operations, code generation]
date: 2025-04-30
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Date TBD


We also take the opportunity to make various improvements, and fix tricky bugs:

- Make migration path from Apollo Tooling to GraphQL Codegen easier
Copy link
Copy Markdown
Collaborator Author

@eddeee888 eddeee888 Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: link to blog post

Comment on lines +49 to +57
- Remove rarely used option: `preResolveTypes`
- Revamp shared options to better match client usage: `avoidOptionals` and `inputMaybeValue`
- Ensure result fields are never optional, unless deferred or conditional
- Improve typings for `@skip` / `@include` directives
- Fix errors silently failing by default
- Ensure consistent naming convention for `enumValues` imports and references
- Change `client-preset` default hash algorithm to SHA256
- Add usage warnings for internal utility types: `Exact` and `Incremental`
- Update dependencies to latest versions (some are now ESM-only)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Add URLs to these config options after merging the feature PR

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