apollo-link-persisted-queries
- Version 0.2.5
- Published
- 59 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
Functions
Interfaces
Namespaces
Variables
variable defaultOptions
const defaultOptions: { generateHash: (query: DocumentNode) => string; disable: ({ graphQLErrors, operation }: ErrorResponse) => boolean; useGETForHashedQueries: boolean;};
variable VERSION
const VERSION: number;
Functions
function createPersistedQueryLink
createPersistedQueryLink: (options?: PersistedQueryLink.Options) => ApolloLink;
function defaultGenerateHash
defaultGenerateHash: (query: DocumentNode) => string;
Interfaces
interface ErrorResponse
interface ErrorResponse {}
property graphQLErrors
graphQLErrors?: GraphQLError[];
property networkError
networkError?: Error;
property operation
operation: Operation;
property response
response?: ExecutionResult;
Namespaces
namespace PersistedQueryLink
namespace PersistedQueryLink {}
type Options
type Options = { generateHash?: (document: DocumentNode) => string; disable?: (error: ErrorResponse) => boolean; useGETForHashedQueries?: boolean;};
Package Files (1)
Dependencies (2)
Dev Dependencies (26)
Peer Dependencies (1)
Badge
To add a badge like this oneto 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[](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>
- Updated .
Package analyzed in 1217 ms. - Missing or incorrect documentation? Open an issue for this package.