database icon indicating copy to clipboard operation
database copied to clipboard

🚀 Feature: Allow value for createdAt & updatedAt on create/update Document

Open fliitor opened this issue 2 years ago • 3 comments

🔖 Feature description

This fields auto generate on insert / update

It can be usefull to force them via data like

{
...otherFields,
"$createdAt": "string or timestamp"
}

🎤 Pitch

In case of migration for others platform, without this we need to inject data directly on MariaDB, or we'll loose this information or if we simply need to change it for any other reason

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

fliitor avatar Jun 23 '23 13:06 fliitor

I let it autogenerate on update. There are bound to be cases where it's necessary, but having it on hand at the time of creation already solves a lot of needs.

TODO if PR accepted, modify documentation to replicate this change

fliitor avatar Jun 23 '23 14:06 fliitor

Thank you for your PR.

Our team will review it ASAP.

joeyouss avatar Jun 27 '23 12:06 joeyouss

This can be close because it's already implemented

fliitor avatar Jun 03 '24 12:06 fliitor