im also getting an error that
Your $project stage doesn’t seem correct
I am also getting the same error. If I run aggregate it sees working. But it doesn’t seem to get validated
Here is the screen shot
The first clue is the message:
Your $project stage doesn’t seem correct.
The second clue is the lab text:
add a $project stage to only display the title and film rating (title and rated fields).
The third clue is that you have the _id field in the output.
Look at https://docs.mongodb.com/manual/reference/operator/aggregation/project/ to see the special case of _id.
1 Like