M220 Basic Joins Video Question

I am trying to follow with the M220 intro video for Basic Joins and can’t figure out what I am doing wrong here. Error in yellow in image at the bottom of $lookup

Hi @Andrew_74578,

Please check the below pipeline:

{
  'from': 'comments',
  'let': { "id" : "$_id" },
  'pipeline': [
    {
    '$match':
      {
        '$expr': {
          '$eq': [ "$movie_id", "$$id" ]
        }
      }
    },
    {
      '$count': 'count'
    }
    ],
  'as': 'comments'
}

In your pipeline, your closed curly braces around $expr was incorrect. Let me know if you need any help.

Kanika

Thanks again. I really appreciate it.