apollo-link-error

  • Version 1.1.13
  • Published
  • 44.1 kB
  • 3 dependencies
  • MIT license

Install

npm i apollo-link-error
yarn add apollo-link-error
pnpm add apollo-link-error

Overview

Error Apollo Link for GraphQL Network Stack

Index

Functions

function onError

onError: (errorHandler: ErrorHandler) => any;

    Classes

    class ErrorLink extends ApolloLink {}

      constructor

      constructor(errorHandler: ErrorHandler);

        method request

        request: (operation: any, forward: any) => Observable<FetchResult> | null;

          Interfaces

          interface ErrorResponse

          interface ErrorResponse {}

            property forward

            forward: NextLink;

              property graphQLErrors

              graphQLErrors?: ReadonlyArray<GraphQLError>;

                property networkError

                networkError?: Error | ServerError | ServerParseError;

                  property operation

                  operation: Operation;

                    property response

                    response?: ExecutionResult;

                      Namespaces

                      namespace ErrorLink {}

                        interface ErrorHandler

                        interface ErrorHandler {}

                          call signature

                          (error: ErrorResponse): Observable<FetchResult> | void;

                            Package Files (1)

                            Dependencies (3)

                            Dev Dependencies (10)

                            Peer Dependencies (0)

                            No peer dependencies.

                            Badge

                            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/apollo-link-error.

                            • Markdown
                              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/apollo-link-error)
                            • HTML
                              <a href="https://www.jsdocs.io/package/apollo-link-error"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>