apollo-angular
Version:
Use your GraphQL data in your Angular app, with the Apollo Client
19 lines (18 loc) • 651 B
TypeScript
import { GraphQLFormattedError } from 'graphql';
import { Observer } from 'rxjs';
import { ApolloLink, ErrorLike } from '@apollo/client';
export type Operation = ApolloLink.Operation & {
clientName: string;
};
export declare class TestOperation<T = {
[key: string]: any;
}> {
readonly operation: Operation;
private readonly observer;
constructor(operation: Operation, observer: Observer<ApolloLink.Result<T>>);
flush(result: ApolloLink.Result<T> | ErrorLike): void;
complete(): void;
flushData(data: T | null): void;
networkError(error: ErrorLike): void;
graphqlErrors(errors: GraphQLFormattedError[]): void;
}