I was following Chapter 2. But db.moviesTitle.find().pretty() doesn’t print anything on the cmd. Even though data exists. I verified it from compass.
Are you sure that the collection is called moviesTitle
?
show collections
Are you sure that you’re in the right database?
db.getName()
HI @Ankujgup,
It’s always a good idea to share the name of the lecture/lab that you are referring to.
~ Shubham
It worked. I was doing something wrong
Closing this thread as the issue has been resolved.