admongodb.hashnode.devThe MongoDB 'unique' trap nobody warned me aboutI added unique: true to a Mongoose schema, restarted my server, and suddenly my app started crashing with a scary MongoDB error — even though my code looked correct. It turns out the bug had nothing t3d ago·2 min read