DEV Community

Discussion on: Solved! Mongoose Unique Index Not Working

Collapse
vu159951 profile image
tran vu

Just need to add dropDups: true to your schema .

Collapse
emmysteven profile image
Emmy Steven Author

Thanks