apollo-link-persisted-queries

  • Version 0.2.2
  • Published
  • 58.8 kB
  • 2 dependencies
  • MIT license

Install

npm i apollo-link-persisted-queries
yarn add apollo-link-persisted-queries
pnpm add apollo-link-persisted-queries

Overview

Use persisted queries with Apollo Link

Index

Variables

variable defaultOptions

const defaultOptions: {
generateHash: (query: any) => string;
disable: ({ graphQLErrors, operation }: ErrorResponse) => boolean;
useGETForHashedQueries: boolean;
};

    variable VERSION

    const VERSION: number;

      Functions

      createPersistedQueryLink: (options?: {
      generateHash?: (document: any) => string;
      disable?: (error: ErrorResponse) => boolean;
      useGETForHashedQueries?: boolean | undefined;
      }) => any;

        function defaultGenerateHash

        defaultGenerateHash: (query: any) => string;

          Interfaces

          interface ErrorResponse

          interface ErrorResponse {}

            property graphQLErrors

            graphQLErrors?: GraphQLError[];

              property networkError

              networkError?: Error;

                property operation

                operation: Operation;

                  property response

                  response?: ExecutionResult;

                    Package Files (1)

                    Dependencies (2)

                    Dev Dependencies (28)

                    Peer Dependencies (1)

                    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-persisted-queries.

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