Skip to content

mongoDb aggregation to Spring data [DATAMONGO-2434] #3291

@spring-projects-issues

Description

@spring-projects-issues

vishal gupta opened DATAMONGO-2434 and commented

Please convert the following query into spring data.

 

db.result.aggregate([
{
$addFields: {
gstinobjids: {
$map: {
input: "$gstids",
as: "r",
in: { $toObjectId: "$$r" }
}
}, gstinobjids2: {
$map: {
input: "$erpids",
as: "r",
in: { $toObjectId: "$$r" }
}
}
}
}
,{
$lookup:
{
from:"financial_data",
localField: "gstinobjids",
foreignField: "_id",
as: "result"
}
},{
$lookup:
{
from:"purchase_data",
localField: "gstinobjids2",
foreignField: "_id",
as: "result2"
}
}

])


No further details from DATAMONGO-2434

Metadata

Metadata

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions