I have the following MongoDb query:
db.table.aggregate([
{
$lookup:
{
from: "secondTable",
localField: "_id",
foreignField: "_id",
as: "secondTableDto"
}
},
{
$unwind: "$secondTableDto"
},
{
$lookup:
{
from: "accounts",
pipeline: [],
as: "accountDto"
}
},
...........
The query is working and now I'm trying to parse it to Spring Data Mongo but I can't find how to do the last lookup with just the pipeline.
Does Spring support it? I've read on the website this feature was released on Mongo 3.6
Thank you