apollo-link-context

  • Version 1.0.20
  • Published
  • 17.9 kB
  • 2 dependencies
  • MIT license

Install

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

Overview

An easy way to set and cache context changes for Apollo Link

Index

Functions

Type Aliases

Functions

function setContext

setContext: (setter: ContextSetter) => any;

    Type Aliases

    type ContextSetter

    type ContextSetter = (
    operation: GraphQLRequest,
    prevContext: any
    ) => Promise<any> | any;

      Package Files (1)

      Dependencies (2)

      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-context.

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