'(Beginner) query MongoDB on DBeaver

Beginner question as I've barely started using DBeaver on querying a MongoDB.

I'd like to run a simple command like:

db.customer.find( {name: "John"} )

However, I'm getting

Command failed with error 10107 (NotMaster): 'not master' on server live-mongodb5.aws.cisha.de:27017. The full response is {"ok": 0.0, "errmsg": "not master", "code": 10107, "codeName": "NotMaster"}

I tried just db, same error. I'm unable to work out what to do next. I tried to follow https://towardsdatascience.com/8-examples-to-query-a-nosql-database-fc3dd1c9a8c to do some queries.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source