- Reference >
- Operators >
- Aggregation Pipeline Operators >
- $concat (aggregation)
$concat (aggregation)¶
On this page
Definition¶
-
$concat
¶ Concatenates strings and returns the concatenated string.
$concat
has the following syntax:The arguments can be any valid expression as long as they resolve to strings. For more information on expressions, see Expressions.
If the argument resolves to a value of
null
or refers to a field that is missing,$concat
returnsnull
.