Skip to content

Commit 3ef5483

Browse files
committed
FormattedExecutionResult instead of ExecutionResult
According to apollographql/apollo-client#11789
1 parent bb0c1be commit 3ef5483

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/stale-penguins-remember.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'apollo-angular': patch
3+
---
4+
5+
`FormattedExecutionResult` instead of `ExecutionResult`

packages/apollo-angular/testing/src/operation.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ExecutionResult, GraphQLError, Kind, OperationTypeNode } from 'graphql';
1+
import { FormattedExecutionResult, GraphQLError, Kind, OperationTypeNode } from 'graphql';
22
import { Observer } from 'rxjs';
33
import { ApolloError, FetchResult, Operation as LinkOperation } from '@apollo/client/core';
44
import { getMainDefinition } from '@apollo/client/utilities';
@@ -15,7 +15,7 @@ export class TestOperation<T = { [key: string]: any }> {
1515
private readonly observer: Observer<FetchResult<T>>,
1616
) {}
1717

18-
public flush(result: ExecutionResult<T> | ApolloError): void {
18+
public flush(result: FormattedExecutionResult<T> | ApolloError): void {
1919
if (isApolloError(result)) {
2020
this.observer.error(result);
2121
} else {

0 commit comments

Comments
 (0)