
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@urql/exchange-multipart-fetch
Advanced tools
An exchange that allows regular fetch and will transition to multipart when files are included
DEPRECATION NOTICE: The
multipartFetchExchangehas been deprecated, and@urql/corenow supports GraphQL Multipart Requests natively. This won't break the behaviour of your existing apps, however, it's recommended to remove themultipartFetchExchangefrom your apps.
The multipartFetchExchange is an exchange that builds on the regular fetchExchange
but adds the multipart file upload capability.
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!
FAQs
An exchange that allows regular fetch and will transition to multipart when files are included
The npm package @urql/exchange-multipart-fetch receives a total of 2,922 weekly downloads. As such, @urql/exchange-multipart-fetch popularity was classified as popular.
We found that @urql/exchange-multipart-fetch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 25 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.