What does 3 dots mean?

I am trying to do the exercize “In the sample_training.trips collection a person with birth year 1961 took a
trip that started at “Howard St & Centre St”. What was the end station name for
that trip?”

Unfortuntly, when querying the below, I get 3 dots as result. What does it mean?

MongoDB Enterprise atlas-8wmg8e-shard-0:PRIMARY> use sample_training.trips
2021-12-22T09:05:49.816+0000 E QUERY    [js] Error: [sample_training.trips] is not a valid database name :
Mongo.prototype.getDB@src/mongo/shell/mongo.js:56:12
getDatabase@src/mongo/shell/session.js:903:28
DB.prototype.getSiblingDB@src/mongo/shell/db.js:20:16
shellHelper.use@src/mongo/shell/utils.js:779:10
shellHelper@src/mongo/shell/utils.js:766:15
@(shellhelp2):1:1
MongoDB Enterprise atlas-8wmg8e-shard-0:PRIMARY> db.zips.find({"birth year":1961}
... 
... 
MongoDB Enterprise atlas-8wmg8e-shard-0:PRIMARY> 
MongoDB Enterprise atlas-8wmg8e-shard-0:PRIMARY> ^C
bye
user@M001# ^C
user@M001# ^C
user@M001#

Hi @Julie_Bontemps,

The shell is expecting you to close the brackets in the following:

// missing closing bracket
db.zips.find({“birth year”:1961}

Try the below (with closing bracket) :

// with the closed bracket
db.zips.find({“birth year”:1961})

With regards to the three dots, you could enter the closed bracket on any of the lines with the three dots you mentioned in your example. As an example of this, please see below:

[primary] testdb> db.coll1.find(
...
... )
[ { _id: ObjectId("61c2ef4702a6aa38d2e162a0"), a: 1 } ]
[primary] testdb>

Hope this helps.

Jason

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.