$match Lab Test Problem

I have followed the steps and able to write query for $match Lab Test, but I get this type of error message ,

MongoDB Enterprise Cluster0-shard-0:PRIMARY> db.movies.aggregate(pipeline).itcount()
24
MongoDB Enterprise Cluster0-shard-0:PRIMARY> load(‘validateLab1.js’)
true
MongoDB Enterprise Cluster0-shard-0:PRIMARY> validateLab1(pipeline)
You aren’t returning the correct number of documents
MongoDB Enterprise Cluster0-shard-0:PRIMARY>

What’s wrong in my query ?? Am I doing something wrong here…??

@Omkar_40282,

If you’re not aware, it’s against forum guidelines to post possible answers to labs. Suggest you edit your post and remove your solution.

I would also suggest that as a first resort you search the forum for posts related to this lab. It’s been discussed multiple times and there are hints and tips in those threads.

Let us know if you still need some assistance.

Hi @Omkar_40282,

Closing this thread as you have already completed the lab.

If you have any questions, please feel free to create a new post.

Regards,
Sonali