Finally I am able to create the match pipeline correctly and when I run db.movies.aggregate(pipeline).itcount(), I am getting 23 count, which correct.
But I am really confused the way we are asked to validate. It is my understanding that we are querying at Atlas, which is cloud server provided by mongodb.
So how can I “Load validateLab1.js into mongo shell” ? and from where I should run validateLab1(pipeline).
Solved the lab but got stuck on the validation part.