Wrong answer in Lab $unwind Chapter 3 Core Aggregation - Combining information

The expected answer is given as: { “_id” : “John Wayne”, “numFilms” : 107, “average” : 6.4 }.
Which seems to be incorrect. The sample_movies db only seem to have 29 movies which includes John Wayne as a cast!

Hi @Prajeet_Shrestha,
You are querying the wrong Atlas Cluster. The sample data that you loaded from the Atlas menu is not the one that’s used in this course. Please use the one provided in the first chapter. Here’s the command for the same:

mongosh “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --tls -u m121 -p aggregations

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer

1 Like

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