Lab - $match, getting syntax error

Hello everyone,

I am trying to complete this lab but i am getting a syntax error when declaring the pipeline variable, this is my query and the error i get, what am i doing wrong?

image

Arrays must be inside brackets. You have Crime,Horror correct but English,Japanese is not.

The :7:31 means line 7 character 31.

1 Like

You are right! I was trying with $elemMatch before and forgot to change to square brackets when using $all.

Thank you for the help!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.