0

I have collection which stores data with time stamp. I want to get in way such as get every single record from collection from date x to y at interval of z minutes. Then how can i do it in single query?

Community
  • 1
  • 1
ASD
  • 87
  • 1
  • 1
  • 8

1 Answers1

0

You have to create a aggregation with which you group your date on a time interval. See this similar question with answers here the data is grouped on a 15min interval: Group result by 15 minutes time interval in MongoDb

Community
  • 1
  • 1
HoefMeistert
  • 1,190
  • 8
  • 17