Skip to content

Conversation

jerelmiller
Copy link

@jerelmiller jerelmiller commented Sep 8, 2025

Fixes #4333

This change fixes the fields in FormattedCompletedResult to match CompletedResult (i.e. id and errors) using the Formatted* type variants. This change also adds a FormattedPendingResult as an counterpart to PendingResult to match the type patterns already established with other Formatted* types.

I ran into this issue when working on adding support for the new incremental format in Apollo Client (apollographql/apollo-client#12906).

@jerelmiller jerelmiller requested a review from a team as a code owner September 8, 2025 21:04
@JoviDeCroock JoviDeCroock added the PR: bug fix 🐞 requires increase of "patch" version number label Sep 20, 2025
@jerelmiller
Copy link
Author

@JoviDeCroock done with 2091d65. Appreciate the review!

@JoviDeCroock
Copy link
Member

It's a bit odd that Completed and FormattedCompletedResult are identical, feels like these Formatted result types are redundant in the first place. Will take a deeper look on Monday and merge :)

@JoviDeCroock JoviDeCroock merged commit c6c4244 into graphql:next Sep 22, 2025
16 checks passed
@jerelmiller jerelmiller deleted the jerel/fix-incremental-types branch September 22, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bug fix 🐞 requires increase of "patch" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants