Skip to content

Commit c6c4244

Browse files
authored
Fix incorrect FormattedCompletedResult fields and add a FormattedPendingResult (#4481)
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).
1 parent ec9c063 commit c6c4244

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/execution/types.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,8 @@ export interface CompletedResult {
162162
}
163163

164164
export interface FormattedCompletedResult {
165-
path: ReadonlyArray<string | number>;
166-
label?: string;
167-
errors?: ReadonlyArray<GraphQLError>;
165+
id: string;
166+
errors?: ReadonlyArray<GraphQLFormattedError>;
168167
}
169168

170169
export function isPendingExecutionGroup(

0 commit comments

Comments
 (0)