【发布时间】:2016-09-08 17:56:08
【问题描述】:
我正在使用:
db.version()
3.2.3
版本()
3.2.0-17-gde480c0
db.getCollection('events').aggregate([
{ $concat: [ "$element", " - ", "$Eventtype" ] }
])
给我以下错误:
"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"
我在这里做错了什么?
【问题讨论】:
标签: mongodb aggregation-framework