mongo

web-dev

NestJS: Custom validator for checking relationship with Mongo model

Build custom class-validator decorator in NestJS to ensure that provided ID in any DTO exists in Mongo database.

Read