get rank in mongodb with date range
get rank in mongodb with date range Problem Description: I have following stat data stored daily for users. { "_id": { "$oid": "638df4e42332386e0e06d322" }, "appointment_count": 1, "item_id": 2, "item_type": "user", "company_id": 5, "created_date": "2022-12-05", "customer_count": 1, "lead_count": 1, "door_knocks": 10 } { "_id": { "$oid": "638f59a9bf33442a57c3aa99" }, "lead_count": 2, "item_id": 2, "item_type": "user", "company_id": 5, … Read more