Chapter 1: Basic Aggregation - $match and $project

I got this error when trying to assign the aggregation to a variable named pipeline:

2019-01-15T12:25:34.261+0100 E QUERY [thread1] SyntaxError: invalid property id @(shell):1:27

Need help, please.

It is because you have a SyntaxError like the message says.

@Emporionak If you are still having the problem, could you post what you were trying to run? I’ve gotten the syntax error when I’ve forgotten to include a $ in certain places or have forgotten to use quotes when needed.