Date query works with _id but not with Date value - MongoDB

后端 未结 1 672
耶瑟儿~
耶瑟儿~ 2021-01-25 03:04

So, I have been trying this since hours but didn\'t get any results.

I have a MongoDB collection which has a date value \"scrape_systemTime\", I am insertin

相关标签:
1条回答
  • 2021-01-25 03:42

    The scrape_systemTime field in your document is a string, not a Date which explains why your query isn't working.

    So it must be that you're not inserting your docs as you think you are, as you'd get strings like this if you inserted that field as:

    scrape_systemTime: Date()
    
    0 讨论(0)
提交回复
热议问题