【发布时间】:2017-03-03 23:29:45
【问题描述】:
有没有办法用spring data的mongodb聚合返回游标?
Aggregation agg = newAggregation(
match(Criteria.where("_id").is(objId)),
unwind("taskResultContent"),
project("taskResultContent.executionUUID","taskResultContent.returnContent","taskResultContent.sequency").and("resultID").previousOperation(),
match(Criteria.where("executionUUID").is(executionUUID)),
sort(DESC,"sequency")
).withOptions(Aggregation.newOptions().cursor(cursor).build());
【问题讨论】:
标签: mongodb aggregation-framework