apollo-link-multipart
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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(),
	]),
});

Related

  • meros A fast utility for reading streamed multipart/mixed responses.

License

MIT © Marais Rossouw

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • alpha
  • 0.0.3
    1,152
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1,152
  • 0.0.2
    1
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i apollo-link-multipart

Weekly Downloads

1,024

Version

0.0.3

License

MIT

Unpacked Size

13.6 kB

Total Files

6

Last publish

Collaborators

  • marais