Mongoose MongoDB Errors Plugin

JSON →
library 0.0.2 ·javascript maintenance
verified Jun 5, 2026

Converts MongoDB duplicate key errors (error code 11000) into Mongoose ValidationError instances. This plugin leverages Mongoose's error handling middleware introduced in Mongoose 4.5. It is an unmaintained, early-stage plugin with limited functionality—only duplicate key errors are transformed. The current version 0.0.2 is stable but minimal, with no recent updates. Compared to alternatives like mongoose-unique-validator, this plugin integrates as a Mongoose plugin but lacks active development and broader error coverage.