EN VI
Posts (0)
Questions (2)
2024-03-13 15:00:08
you can use aggregation query for it. db.collection.aggregate([ {$match:{source:'here'}, {$addFields:{count:1}}, {$group:{_id:'$date' ,totalDocuments:{$sum:"$count"}} } ])
2024-03-15 22:00:06
Just chain up your 2 queries with $unionWith db.collection.aggregate([ { "$sort": { "insertedAt": 1 } }, { $limit: 1 }, { "$unionWith": { "coll": "collection",...

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login