谁取代了mongoDB AggregateOutput?
AggregateOutput目前已经被废弃。
AggregationOutput output = collection.aggregate(pipe);
for (DBObject obj : output.results()) {
//...
}
AggregationOutput output = collection.aggregate(pipe);
for (DBObject obj : output.results()) {
//...
}
之前的替换方案Agg
翻译
2021-11-25 23:16:24 ·
176 阅读 ·
0 评论