今天用mongodb的聚合查询aggregate报错,如下:
2018-07-14 18:32:23.075 ERROR com.mongodb.MongoCommandException: Command failed with error 16436: 'Unrecognized pipeline stage name: 'corpId'' on server 54.222.229.62:23770. The full response is { "ok" : 0.0, "errmsg" : "Unrecognized pipeline stage name: 'corpId'", "code" : 16436 }
com.mongodb.MongoCommandException: Command failed with error 16436: 'Unrecognized pipeline stage name: 'corpId'' on server 54.222.229.62:23770. The full response is { "ok" : 0.0, "errmsg" : "Unrecognized pipeline stage name: 'corpId'", "code" : 16436 }
at com.mongodb.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:115)
at com.mongodb.connection.CommandProtocol.execute(CommandProtocol.java:114)
at com.mongodb.connection.DefaultServer$