Draft
Conversation
|
eddeee888
commented
Apr 7, 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 |
eddeee888
commented
Apr 7, 2026
|
|
||
| We also take the opportunity to make various improvements, and fix tricky bugs: | ||
|
|
||
| - Make migration path from Apollo Tooling to GraphQL Codegen easier |
Collaborator
Author
There was a problem hiding this comment.
TODO: link to blog post
eddeee888
commented
Apr 7, 2026
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) |
Collaborator
Author
There was a problem hiding this comment.
TODO: Add URLs to these config options after merging the feature PR
71dc235 to
3f19032
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TODO