How to get the element matching to any of strings in Array

I’m trying to solve the lab which says How many movies in the movieDetails collection list "Family" among its genres?
I’m using the following query
it returns only 8 which is not in the option list.
I’m sure, I must be missing something. Can someone please guide

Hey @Ahsan_72923

We are not really suppose to post answer or attempted answer code. Perhaps best to remove.

However, Consider what your current query is asking and you will realize your mistake.
It reads as follows
finding all documents that [BLANK], [SOMEVALUE] and count those docs

Also check out the mongodb docs for more help here

1 Like

Hi @Ahsan_72923,

As I can see you have already completed this lab. If you still have any issue, feel free to get back to us.

Thanks @natac13 for contributing.

Shubham Ranjan
Curriculum Support Engineer