I'm trying to implement mongoose-id-validator in a NestJS project. When I do, the creation of the object gives me a timeout of more than 5 seconds, both when the IDs are valid and when they are not valid.
import * as idValidator from 'mongoose-id-validator';
EventSchema.plugin(idValidator);
{type: [mongoose.Schema.Types.ObjectId], required: true, ref: 'User'}
I'm trying to implement mongoose-id-validator in a NestJS project. When I do, the creation of the object gives me a timeout of more than 5 seconds, both when the IDs are valid and when they are not valid.
import * as idValidator from 'mongoose-id-validator';EventSchema.plugin(idValidator);{type: [mongoose.Schema.Types.ObjectId], required: true, ref: 'User'}