/nestjs-mongoose-discriminator-problem

A sample app showing how to deal with mongoose's discriminators in NestJS.

Primary LanguageTypeScriptMIT LicenseMIT

nestjs-mongoose-discriminator

A sample app showing how to deal with mongoose's discriminators in Nest.

Description

This NestJS API uses an in-memory MongoDB to demonstrate the validation of polymorphic data in a document's array.

Installation

$ npm install

Running the app

# 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.

Stay in touch