mongoose
mongoose copied to clipboard
Schema updation
I had a schema having a field 'email' and uniqueness check. Now, i've removed the 'email' field from the schema, but it still cribs about duplicate 'email' value set to null. "error": "MongoError: insertDocument :: caused by :: 11000 E11000 duplicate key error dup key: { : null }
Is this is a known issue? what is the work around in that case?
This was an issue with the mongodb, it did not remove the indexing on the field and that was causing the issue. Sorry for the spam. Thanks.