apollo-angular
Version:
Use your GraphQL data in your Angular app, with the Apollo Client
20 lines (19 loc) • 678 B
TypeScript
import { ExecutionResult, GraphQLError } from 'graphql';
import { Observer } from 'rxjs';
import { ApolloError, FetchResult, Operation as LinkOperation } from '@apollo/client/core';
export type Operation = LinkOperation & {
clientName: string;
};
export declare class TestOperation<T = {
[key: string]: any;
}> {
readonly operation: Operation;
private readonly observer;
constructor(operation: Operation, observer: Observer<FetchResult<T>>);
flush(result: ExecutionResult | ApolloError): void;
flushData(data: {
[key: string]: any;
} | null): void;
networkError(error: Error): void;
graphqlErrors(errors: GraphQLError[]): void;
}