MongoDB query by datetime field 1h interval
I've been trying to extract one record each 1 hour from a collection with 1 record each 10 seconds on the datetime (Date). The document is like this: datetime: 2021-11-26T15:08:20.000+00:00 owner_id: "INTERNAL" motor_id: 24 The datetime document field is Date()…