@os-team/relay-network-mw-upload
TypeScript icon, indicating that this package has built-in type declarations

1.2.19 • Public • Published

@os-team/relay-network-mw-upload NPM version BundlePhobia

The middleware for @os-team/relay-network-creator to transform each request by GraphQL multipart request specification for file uploads.

Usage

Step 1. Install the package

Install the package using the following command:

yarn add @os-team/relay-network-mw-upload

Step 2. Add the middleware

import createRelayNetwork from '@os-team/relay-network-creator';
import upload from '@os-team/relay-network-mw-upload';

createRelayNetwork({
  url: 'https://api.domain.com/graphql',
  middlewares: [upload],
});

Readme

Keywords

none

Package Sidebar

Install

npm i @os-team/relay-network-mw-upload

Weekly Downloads

4

Version

1.2.19

License

MIT

Unpacked Size

6.21 kB

Total Files

8

Last publish

Collaborators

  • oxilor