No data for 100YWeatherSmall

Hi, i am unable to find dataset for day 3 quiz Element Operation.

MongoDB Enterprise Cluster0-shard-0:PRIMARY> use 100YWeatherSmall
switched to db 100YWeatherSmall
MongoDB Enterprise Cluster0-shard-0:PRIMARY> db.data.find({atmosphericPressureChange: {$exists: false}}).count(
0

@Tushar_35921,

First of all it didn’t access the collections properly, how you connected to this atlas cluster…is it through -username m001-student ( i mean the M001 atlas cluster)???

yes… as per guidelines mentioned in the video

I am able to get the output. Please use the below command to connect to our atlas cluster:

mongo "mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/100YWeatherSmall?replicaSet=Cluster0-shard-0" --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics

Also, I am assuming you have closed the paranthesis for count, it is count(). So, your query will look like:

  db.data.find({atmosphericPressureChange: {$exists: false}}).count()

Kanika

1 Like