Mongodb – mongoose-unique-validator not working with typegoose nested object
I'm using typegoose nested classes with mongoose-unique-validator as follows import { prop, plugin, post, index, getModelForClass, } from "@typegoose/typegoose"; const uniqueValidator = require("mongoose-unique-validator"); @plugin(uniqueValidator, { message: "{VALUE} already exists", }) // ATTRIBUTES CLASS class Attributes { @prop({ default: false, })…