The middleware for @os-team/relay-network-creator to transform each request by GraphQL multipart request specification for file uploads.
Install the package using the following command:
yarn add @os-team/relay-network-mw-upload
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],
});