1.1.0 • Published 1 year ago

@urql/exchange-multipart-fetch v1.1.0

Weekly downloads
1,538
License
MIT
Repository
github
Last release
1 year ago

@urql/exchange-multipart-fetch

DEPRECATION NOTICE: The multipartFetchExchange has been deprecated, and @urql/core now supports GraphQL Multipart Requests natively. This won't break the behaviour of your existing apps, however, it's recommended to remove the multipartFetchExchange from your apps.

The multipartFetchExchange is an exchange that builds on the regular fetchExchange but adds the multipart file upload capability.

Quick Start Guide

First install @urql/exchange-multipart-fetch alongside urql:

yarn add @urql/exchange-multipart-fetch
# or
npm install --save @urql/exchange-multipart-fetch

You'll then need to add the multipartFetchExchange method, that this package exposes, to your exchanges.

import { createClient, dedupExchange, cacheExchange } from 'urql';
import { multipartFetchExchange } from '@urql/exchange-multipart-fetch';

const client = createClient({
  url: 'http://localhost:1234/graphql',
  exchanges: [dedupExchange, cacheExchange, multipartFetchExchange],
});

Now we can start uploading files to our server!

1.1.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.14

2 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago