Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

80
Views
MongoDB historical data query

I'm recording historical data for different items and I've perhaps wrongly decided to store the data in one collection per item as an array of objects ie:

{
    "_id" : ObjectId("616d4e1c1e7edf6e9bcdd668"),
    "collectibleId" : "bc50774d-b923-4a5c-8e5d-f25608e1e80e",
    "1634553373797" : {
        "storePrice" : "39.99",
    },
    "1634554743600" : {
        "storePrice" : "39.99",
    },
    "1634558354739" : {
        "storePrice" : "39.99",
    },
    ...
}

I'd like to know given the above data (key is a unix timestamp) how I could go about fetching all of the data between date A and date B.

Thanks,

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!