mongoose icon indicating copy to clipboard operation
mongoose copied to clipboard

Schema updation

Open hrishit opened this issue 11 years ago • 1 comments

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?

hrishit avatar Jan 27 '15 16:01 hrishit

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.

hrishit avatar Jan 27 '15 17:01 hrishit