Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

apollo-link-multipart

maraisr2.1kMIT0.0.3TypeScript support: included

An Apollo link for multipart responses

multipart, multipart mixed, fetch, apollo, stream, defer

readme

apollo-link-multipart


IMPORTANT

Apollo aim to support this natively after v3 so this library be be mute soon.


An ApolloLink aimed at supporting @defer through multipart responses.

⚙️ Install

yarn add apollo-link-multipart

🚀 Usage

import { ApolloClient } from '@apollo/client/core';
import { ApolloLink } from '@apollo/client/link/core';

const client = new ApolloClient({
    cache: new InMemoryCache(),
    link: ApolloLink.from([
        // takes all the options from HttpLink
        createMultipartLink(),
    ]),
});
  • meros A fast utility for reading streamed multipart/mixed responses.

License

MIT © Marais Rossouw