Lab 1.1. $match: problem with genre

Hi there:

After reading old posts, I have figured out how to set all requirements except genre, whose logic frankly I don’t understand and I guess it’s the reason of the extra document I’m getting.

I have tried several options, including using $or; last one (that doesn’t work either):

genres: {$not: {$all: ["Crime", "Horror"]}},

A detailed explanation of the logic behind genre would be much appreciated.

This was discussed recently, and I was also part of some of those discussions. Search the forum to see what you can make out of it.

Here are some of those discussions:

See how you get on.

1 Like

Thanks, first one was very useful!