No collection found

Hi I am connected to latest mongo Enterprise Cluster0-Shared-0:Primary

Mongo shell version v4.0.4
after running command : show collections
no collection is found.

Hi, some thought about your problem:

  • are you connected to your own sandbox cluster?
  • did you run the loadMovieDetailsDataset.js file?
  • have you selected the database with the use command?

Regards, Alain

How do you run the loadMovieDetailsDataset.js file on command prompt in windows? I am getting an error everytime I try running it on CLI

Hi @Moses_87400
You can run it using the load-command. To make it work, you have to start the mongo shell from the directory where the file is located. If you want, post your command.

C:\Users\Moses\M001> cd loadMovieDetailsDataset
The system cannot find the path specified.

I have figured it out. I have to have created another directory named loadMovieDetailsDataset then have the loadMovieDetailsDataset.js stored inside it. Thanks for the swift response.

1 Like

I also keep getting this error whenever I am connecting to my Cluster. What could be the issue although everything works out fine " Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.] "

Look for that message in this thread: