My sandbox is giving me weird behavior. Is it a shared sandbox, where other people might change it while I’m using it? Or am I connecting to the wrong place?
My connection string is
mongo “mongodb+srv://sandbox-qt1dz.mongodb.net/test” --username m001-student --password m001-student-basics
(In Atlas it’s different of course, but same server/user/pw)
For example
MongoDB Enterprise Sandbox-shard-0:PRIMARY> db.movieDetails.find({“rated”: “PG”, “awards.nominations”: 10}).count()
3
a few minutes later:
MongoDB Enterprise Sandbox-shard-0:PRIMARY> db.movieDetails.find({“rated”: “PG”, “awards.nominations”: 10}).count()
0
I tried exiting restarting Shell but that made no difference.
Also, in Atlas {“genres”: “Family”} returns ‘1-20 of many’
but the same query in Shell finds nothing
MongoDB Enterprise Sandbox-shard-0:PRIMARY> db.movieDetails.find({“genres”: “Family”})
MongoDB Enterprise Sandbox-shard-0:PRIMARY>
Similarly, Atlas and Shell are different for
MongoDB Enterprise Sandbox-shard-0:PRIMARY> db.movieDetails.find({“writers”: “Ethan Coen”,“writers”: “Joel Coen”}).count()
0
while Atlas finds three documents
I’m stuck with the 2.3 quiz because right now nothing’s working