You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to use datetime type in aggregations match, I've tested the mongodb 7.0 (mongoDB Compass) there is no any data with time series collection when aggregations with the timestamp(datetime) key gt or lt with $date or $DateFromString or any other in documents, there is new date and ISODate working, but I can not find any solution to give the match aggregations with date obj.
Version
Which version(s) did you encounter this bug ?
4.5.4
Context
there is no way to put the date in JsonObject for aggregations match
minuteBeginDate could be timestamp or Instant or Date or {"$date": "xxx date" }
Extra
I've search in google also in issues in this project, with GPT, there is no working solution. Even in offical mongoDB Compass is only "new date" and "ISODate" working, I found no way to let the mongo use the "new date" or "ISODate" in JsonObject.
The text was updated successfully, but these errors were encountered:
I was changed the part of my project by using com.mongodb.client directly, I will change it back later to let you have the full testing code.
minuteBeginDate could be timestamp or Instant or Date or {"$date": "xxx date" }
during my testing today, it seems my simply testing code working with {"$date": Instant obj }, I'm not sure if it is the only working way that I haven't tried in above I think
Questions
Unable to use datetime type in aggregations match, I've tested the mongodb 7.0 (mongoDB Compass) there is no any data with time series collection when aggregations with the timestamp(datetime) key gt or lt with $date or $DateFromString or any other in documents, there is new date and ISODate working, but I can not find any solution to give the match aggregations with date obj.
Version
Which version(s) did you encounter this bug ?
4.5.4
Context
there is no way to put the date in JsonObject for aggregations match
Do you have a reproducer?
minuteBeginDate could be timestamp or Instant or Date or {"$date": "xxx date" }
Extra
I've search in google also in issues in this project, with GPT, there is no working solution. Even in offical mongoDB Compass is only "new date" and "ISODate" working, I found no way to let the mongo use the "new date" or "ISODate" in JsonObject.
The text was updated successfully, but these errors were encountered: