I am using:
db.version()
3.2.3
version()
3.2.0-17-gde480c0
db.getCollection('events').aggregate([
{ $concat: [ "$element", " - ", "$Eventtype" ] }
])
gives me the following error:
"assert: command failed: {
"ok" : 0,
"errmsg" : "Unrecognized pipeline stage name: '$concat'",
"code" : 16436
} : aggregate failed
_getErrorWithCode@src/mongo/shell/utils.js:23:13
doassert@src/mongo/shell/assert.js:13:14
assert.commandWorked@src/mongo/shell/assert.js:266:5
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1215:5
@(shell):1:1"
What am I doing wrong here?