0
Ich bin ein Neuling, MongoDB und Casbah und ich frage mich, ob jemand mir bitte helfen kann.Scala, Casbah Aggregat Abfrage
ich folgendes mongoDB Abfrage haben, die funktioniert,
db.getCollection('holidayRequests').aggregate
(
[
{ $match: { $and: [ { email: "[email protected]" } , { status: "APPROVED" } ] }},
{
$group:
{
_id: { email: "$email" },
totalAmount: { $sum: "$daysTaken" }
}
}
]
);
Wie konvertiere ich dies auf eine Abfrage der Casbah Fahrer verstehen?