With Multipart File Upload#
This example shows urql in use with @urql/exchange-multipart-fetch's multipartFetchExchange
to support file uploads in GraphQL. This largely follows the "File Uploads" docs
page
and uses the trygql.formidable.dev/graphql/uploads-mock schema.
To run this example install dependencies and run the start script:
yarn install
yarn run start
# or
npm install
npm run start
This example contains:
- The
urqlbindings and a React app with a client set up insrc/App.jsx - A basic file upload form in
src/FileUpload.jsx