Shell query shows only 0 or nothing

Hi out there, I have a problem and I hope you can help me. My database connection with shell and compass is ok. In compass I can read out everything, but shell only provides 0 or nothing. I also changed a lot (doublequotes, delete empty space)…

shell

I copied the string from the answer. Whats wrong?

Hello, I found the failure…

In my connectionstring I had always “test” for the connected database of my cluster. But I need to type video, so I can read out the movieDetails collection…

wrong:
99buxxcluster-shard-00-02-s3l44.mongodb.net:27017/test?replicaSe

right:
99buxxcluster-shard-00-02-s3l44.mongodb.net:27017/video?replicaSe

Thanks

1 Like