Mongo模板剩余的两个查询之间加入
在一个春季项目中,我将反应性 mongodb与mongo Template一起返回类型报告类的结果。
var res1 = (Flux<Report>) template.find(query1, ReportFactory.getReport(reportType).getClass());
var res2 = (Flux<Report>) template.find(query2, ReportFactory.getReport(reportType).getClass());
我想要一种使用Mongo模板在不使用Java的情况下找到两个结果之间的左联接的方法。 例如:
如果res1 = {rep1,rep2,rep3]
and:res2 = {rep2,rep5}
它们之间的左键应为 rep2
In a spring project, I'm using reactive mongodb with mongo template to return a result of type Report class.
var res1 = (Flux<Report>) template.find(query1, ReportFactory.getReport(reportType).getClass());
var res2 = (Flux<Report>) template.find(query2, ReportFactory.getReport(reportType).getClass());
I want a way to find the left join between two result using mongo template without using java.
For example:
if res1 = {Rep1,Rep2,Rep3]
and: res2 = {Rep2,Rep5}
the left join between them should be Rep2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论