Top "Mongo-shell" questions

The mongo shell is an interactive JavaScript shell for MongoDB, and is part of all MongoDB distributions.

Cannot connect to mongodb atlas through mongo shell

I've checked other similar posts but none worked for my case. I upgraded my mongo shell right before connecting to …

mongodb mongo-shell mongodb-atlas
How to run a local script in mongo shell - Solution load()

I think this is a very basic question but I'm stuck. I'm connected to remote mongo instance (mLab) via a …

mongodb mongo-shell
Why cant I connect to replica set using mongo shell?

I can connect to replica set using following command from mongo shell version 3.2.11. But the same does not works with …

mongodb mongo-shell
Adding new property to each document in a large collection

Using the mongodb shell, I'm trying to add a new property to each document in a large collection. The collection (…

mongodb mongodb-.net-driver mongo-shell
Getting an Error trying to add a user to mongodb 2.6.5

I have spent a majority of my day trying to add a user to mongodb 2.6.5. I installed & re-installed Mongo …

macos mongodb macports mongo-shell
Not able to use mongo shell in intellij

i am able to connect to mongo db from intellij. Mongo explorer is working fine. but after connecting when i …

mongodb intellij-idea mongo-shell
mongodb query on DBRef type

How do I turn this query in a valid mongodb Query in mongodb shell. { 'cars.owner.$ref' : 'users' } cars.owner …

mongodb mongodb-query mongo-shell dbref