'Mongo template left join between two queries
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|