insertMany() Not inserting anything to Compass

Hi there, I’m on Chapter 2: The MongoDB Query Language + Atlas ### Creating Documents: insertMany().
I’ve been trying to load the data into Compass without being very successful. It’s very strange because I followed the instructions of the video, with insertMany() from the shell and then hit refresh on Compass but nothing. It’s not updating. I’ve checked other posts here but no clear solutions were provided. I hope someone can help and explain why is it not working. I’m attaching screenshots so you can see.

Thanks in advance MongoDB students and team!

Cristina
PS: you may need to zoon to see the code, for some reason the pics are very tiny!

insertMany() problem insertMany() problem_1 insertMany() problem_2

Hi @Cristina_13270,

See this post.

Hi @Cristina_13270,

The issue has been fixed in the latest release of Compass i.e. (1.20.1 Stable).

Either upgrade to the latest version of Compass or do the following :

  1. For Windows based operating system reload the data by pressing Ctrl+R

  2. For Mac computer reload the data by pressing Command+R (for any other user who are facing the same issue).


On a side note, your insertMany command is failing with duplicate key error. You can read more about the insertMany() command in our documentation.

Hope it helps!

If you have any other query then please feel free to get back to us.

Happy Learning :slight_smile:

Thanks,
Shubham Ranjan
Curriculum Support Engineer