I am not able get any ouput for below commands

MongoDB Enterprise atlas-nzw8k3-shard-0:PRIMARY> use routes
switched to db routes
MongoDB Enterprise atlas-nzw8k3-shard-0:PRIMARY> db.routes.find({ “stops”: { “$gte”: 0 }}).pretty()
MongoDB Enterprise atlas-nzw8k3-shard-0:PRIMARY> db.routes.find({ “stops”: { “$lt”: 10 }}).pretty()
MongoDB Enterprise atlas-nzw8k3-shard-0:PRIMARY> db.routes.find({ “stops”: { “$ne”: 0 }}).pretty()
MongoDB Enterprise atlas-nzw8k3-shard-0:PRIMARY> db.routes.find({ “stops”: { “$gt”: 0 }}).pretty()
MongoDB Enterprise atlas-nzw8k3-shard-0:PRIMARY> db.routes.find({ “stops”: { “$gte”: 0 }}).pretty()
MongoDB Enterprise atlas-nzw8k3-shard-0:PRIMARY> db.routes.find({ “stops”: { “$gte”: 0 }}).count()
0
MongoDB Enterprise atlas-nzw8k3-shard-0:PRIMARY> db.routes.find({ “stops”: { “$gte”: 0 }}).count()
0
MongoDB Enterprise atlas-nzw8k3-shard-0:PRIMARY>

Your quotes could be the problem
Use straight double quotes

  • routes is a collection, not database and a collection.
use sample_training
db.routes.find(yourQuery)

Because the db specified does not exist, it returns nothing.