Bug related to $let

Hi Abhishek,

There is no bug in $let stage, it’s just a simple typo in your pipeline.
In the documents you have the field as $rating but in the $let stage you mentioned $ratings which resulted in the average as null subsequently which is lesser than 3 so thats why in the output every document has the value of updateNeeded as true.

2 Likes