Follow the given steps in order to solve the problem:
1. Use MongoDB compass for ease.
2. Open the "collection" in which you are facing a problem.
3. Delete all the indexes that were showing errors through MongoDB compass.
4. This should solve your problem.
If the error persists then either delete the collection whose attributes were showing errors or delete an entire "collections" of that particular database and create new ones.
You can also follow the steps shown in the video below:
0 comments:
Post a Comment