This is a Next.js project bootstrapped with create-next-app
.
This is a demo of uploading a file via GraphQL using:
- Apollo Client
- Apollo Server Micro - setup in the
pages/api
folder.
Next.js has an example of an Apollo Server and Client setup with Next.js.
The server is not configured to do anything with the file after it has been transferred.
First, install the dependencies:
npm install
Then, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.