@ladjs/mongoose-unique-validator
MITMongoose plugin which adds pre-save validation for unique fields within a Mongoose schema. This makes error handling much easier, since you will get a Mongoose validation error when you attempt to violate a unique constraint, rather than an E11000 error f
85
Security score
0 known advisories in v5.0.0
Weekly downloads
—
Unpacked size
14.5 kB
Dependencies
1
Last publish
3 years ago
Security advisories
No known vulnerabilities affect v5.0.0.