[optional lab Chapter1] Stage needs to be a proper formatted document


Again im stuck at the syntax.

I have this :

and it looks to me that the right amount of { and } are open and closes but still the above error.

Edit: Deleted the aggregation pipeline.

You are missing a : after setIntersection and before the opening [.

1 Like

Thanks, changed that but still compass is complaing about that the document is not formatted right

Hi @Roelof_Wobben,

You can refer to this example for correct usage of $setIntersection operator:

Note: If you compute a field in one $project stage, you cannot use that newly computed value in the same $project stage.

If you still get any error, please let me know and I will initiate a discourse inbox thread for us to debug the issue.

Kind Regards,