Final Exam Question 5

I’m pretty sure it’s a typo, but wanted to make sure. Final Exam Question 5 states:

Sample uses db.cities
db.cities.findOne()

Has indexes using people
db.people.getIndexes()

Your query uses
db.people.aggregate(pipeline)

Should they all be using db.cities?

Thanks.

2 Likes

Hi,

Thank you very much for pointing this out, you are absolutely right. Indeed this was solved in the previous round of the course… So assume the collection name is cities.

José Carlos