Lookup from synatx error

when executing your_first_join.ipynb I’m getting below error that says invalid from syntax, please help.

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

File “”, line 2
from: ‘comments’,
^
SyntaxError: invalid syntax

please ignore it bcos I resolved it

Hello prasanthsp84,

The commands in the notebook are intended to be run in Compass, like they are in the lecture video. We accidentally labeled the commands as Python cells, but we will update the notebook to label them as Markdown in the future.

Thanks for the feedback,
Matt

Thank you mattjavaly

one quick question, so can it also be executed in atlas?

Hello prasanthsp84,

Yes, the commands from the notebook can be executed against Atlas. You need to connect to Atlas with Compass, and then copy/paste the pipeline stages into Compass (under the “Aggregation” tab). This is also demonstrated in the lesson video.

I hope this helps!

Matt