I created this model, but later on i thought that name field should not be unique so i updated my model by removing unique attribute from name field.
but is mongoose keeping some cache or something because even after updating the code in my model file when i do a user register request i am getting this error that duplicate key for name field and it is not accepting same names for 2 documents.