Migrating createdAt / updatedAt

We are doing some migrations and need to keep the old objects createdAt and updatedAt information. Is there any way to forcibly set these values on a new object without resorting to modifying the database directly?


Hi mullwaden,
I had the same issue and the only way i figured out was to save dates using mongodb package skiping parse API

await collection.updateOne(
    $set:  {
        _created_at: toIso(data.created_at),
        _updated_at: toIso(data.updated_at),