Text and Subfield Search

That was one the possible items.

Having the same problem

@sondiek, please try the same solution.

Just a hint…

The parameter for the function is “genre”
The array in the BSON object on mongoDB is called “genres”

very subtle difference…

6 Likes

thanks man, i solved using your solution

1 Like

It’s always a good idea to open up the DB on MongoDB Compass using the connection string, and analyze the schema there. You can see all the exact field names.

In my case, I used genre instead of genres and was breaking my head for 20mins. Thank you @Anthony_19566!

1 Like

Thanks! I didn’t realize about that =)