Basic join compass

Im trying to follow along with the video but my compass is just not working. Im pretty sure im typing what the video does but its just not coming back with anything.

from: ‘comments’,
let: {‘id’: ‘$_id’},
pipeline: [
{’$expr’: {’$eq’: [’$movie_id’, ‘$$id’] }
as: ‘movie_comments’

i dont know what im doing wrong :frowning:

You are missing a closing brace for the $match. The one closing brace alone on the line after $expr is closing $expr. So just add one at the end of the $expr line and it should be good.

1 Like