$eq
Returns true when the two expressions evaluate to the same value.
Syntax
{ "$eq": [ <expression1>, <expression2> ] }
Example
Input
{ "plan": "premium" }
Stage
{ "$project": { "isPremium": { "$eq": ["$plan", "premium"] } } }
Output
{ "isPremium": true }