Question: what is difference between $group and $project in mongodb?
Answer: The purpose of $group is not only to push some fields to next stage but to gather some element on the basis of input criteria passed in the _id attribute. On the other, hand $project function will exclude/include some field(or custom field) to next stage.