Sample_training zips is empty in the online IDE

image

Hello all, when I enter MongoDB Atlas my zips collection is fully populated, but in the online IDE it’s empty. I could get away with it until chapter 4 lab 1where I’m asked to give the count of zips with populations of less than 1000 people. Is there a function to find this in Atlas or a way to fix the online IDE’s zips collection?

Thank you.

The name zips is a collection inside the sample_training database. You use the use shell command to switch from one database to the other. You were already in the sample_training database but by using use zips you selected another and in-existing database named zips. To get back on your feet simply:

use sample_training
db.zips.count()
3 Likes

ah so I was going too deep. I guess this shell is different than Unix. Thank you for your help!