This example shows how to use graphql-upload-ts
with Apollo Server.
# Install dependencies
yarn install
# Start the server
yarn start
# Test upload with cURL ( successful upload as server accept only mime type image/png)
./upload.sh http://localhost:4000/graphql test.png
# Test upload with cURL ( failed upload / throw exception as server reject mime type image/jpeg)
./upload.sh http://localhost:4000/graphql test.jpg