neos1803 / graphql-nestjs-upload

An example of graphql-upload implementation on NestJs

Repository from Github https://github.comneos1803/graphql-nestjs-uploadRepository from Github https://github.comneos1803/graphql-nestjs-upload

Nest Logo

Description

This is an example of how to implement file upload on nestjs with GraphQL

Notes

This is built with apollo express 2 since apollo 3 currently isn't compatible with current newest nestjs/grapqhl (^8.x)

Upcoming

  • Multiple Files Upload
  • File validation
  • Cloud integration to save files

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Example

Example on how testing this on postman: Nest Logo

About

An example of graphql-upload implementation on NestJs


Languages

Language:TypeScript 87.1%Language:JavaScript 12.9%