A sample app showing how to deal with mongoose's discriminators in Nest.
This NestJS API uses an in-memory MongoDB to demonstrate the validation of polymorphic data in a document's array.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Once running, you can use the OpenAPI/Swagger UI to try out the API by going to http://localhost:3000/open-api.
- Author - Rémi Sormain
- Twitter - @RSormain