@os-team/relay-network-mw-upload
v1.3.2
Published
The middleware for @os-team/relay-network-creator to transform each request by [GraphQL multipart request specification](https://github.com/jaydenseric/graphql-multipart-request-spec) for file uploads.
Downloads
933
Readme
@os-team/relay-network-mw-upload

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