Lab 2.1 answer not in the options

Hello,

I loaded the video.movieDetails collection on my compass which displays 1000 documents. However, when I filter {genres: “Comedy”} I get different figure which is not among the options displayed for labs.

Please, I want to know what I’m wrong for getting a different value or did I load a wrong dataset?

Thanks.

Did you crosscheck with shell command

MongoDB Enterprise Cluster0-shard-0:PRIMARY> db.movieDetails.count()
2295
In my case above figure matches with what is showing in Compass

Thanks for the response @Ramachandra_37567, it seems I didn’t load the js file properly, so I had to drop the database and reload again. After reloading the database then I was able to get the answer correct.

Thanks