Is there an (efficient) way of converting a MongoDB document field of type BsonTimestamp
to a Date
field. Do I have to create a temporary field to store the Date? Do I have to write a custom JS migration script and loop over every item for this?
from this:
"ts": {"$timestamp": {"t": 1620986905,"i": 1 } }
to this:
"ts": {"$date": {"$numberLong": "1620986905626" } }