This version has reached end of life on October 2016. Learn more about upgrading your version of MongoDB.

Aggregation Literal Operators

Name Description
$literal Return a value without parsing. Use for values that the aggregation pipeline may interpret as an expression. For example, use a $literal expression to a string that starts with a $ to avoid parsing as a field path.