Mongo shell not showing me any results

I can type query , enter. No errors, But it does not show me any results. BTW, I get warning when I connect, server and shell versin do not match. Please help.

You can ignore “server and shell version do not match” messages
What DB you are connected and which cluster(Class vs Sandbox)
If you connect to non existent DBs you will not get any results
Do you see the collections which you used in your query?

2 Likes

Yes, I am correctly connected to sandbox cluster. I can see video db in my compass connection and can also see the query results in compass.

I am attaching compass scrrenshot.

You mentioned issue with shell
Please paste commands you ran at shell

Hi @BIMAL_THAKKAR_89565,

Correct!!! You can just ignore this warning.

Moreover, please share the screenshot of the query that you ran in mongo shell.

Thanks,
Sonali

1 Like