-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
RepositoryIssues related to @loopback/repository packageIssues related to @loopback/repository packagespike
Description
Description / Steps to reproduce / Feature proposal
How to use raw queries like aggregation on mongodb. Is there any solution ?
Current Behavior
Expected Behavior
I want to use raw queries or other models. For example, Customer model, and Products model. I need to write aggregate query like
db.LoanRequestMappings.aggregate([
{
$lookup:{
.....
}
},
{ $unwind:"$data" },
{
$match:{
...
}
},
{
$lookup:{
...
}
},
{ $unwind:"$LoanRepayment" },
{ $project : { _id: 0} },
{ $out : "tempData" }
])on product model while getting customer model.
Please help.
See Reporting Issues for more tips on writing good issues
joe-niland, ajbautista0311, shaikhriyaz434, elmassihamza and artemtek
Metadata
Metadata
Assignees
Labels
RepositoryIssues related to @loopback/repository packageIssues related to @loopback/repository packagespike