Closed genxlogics closed 7 years ago
Hi All, i am trying below mongodb db aggregation to be used through restheart. the value for "vehicleType" woulld be my variable to pass for the aggregation query. could somebody please help me to understand how must i set the aggrs properties??
db.tempTest.aggregate([ { $match: {"vehicleType": "OR"}}, { $project: { vehicles: {$filter: { input: '$vehicles', as: 'item', cond: {$eq: ['$$item.languageIndicator', "EN"]} }} }},
])
okay, i go that working nicely...thanks Restheart team !!
Hi All, i am trying below mongodb db aggregation to be used through restheart. the value for "vehicleType" woulld be my variable to pass for the aggregation query. could somebody please help me to understand how must i set the aggrs properties??
Mongodb Aggregation
db.tempTest.aggregate([ { $match: {"vehicleType": "OR"}}, { $project: { vehicles: {$filter: { input: '$vehicles', as: 'item', cond: {$eq: ['$$item.languageIndicator', "EN"]} }} }},
])