updatedTime

Is there a config for automatically setting updatedTime, similar to the autogenerated _creationTime?
3 Replies
lee
lee2y ago
Hi! There is no config for that, at the moment. We considered adding it by default, but decided against it because it's unexpectedly common to do a mutation without wanting to bump updatedTime -- in particular for migrations. You can add it yourself with .patch({updatedTime: (new Date()).getTime())})
Mikael Lirbank
Mikael LirbankOP2y ago
Thx! Sounds good!
Indy
Indy2y ago
Yep a few of us have worked in systems that did this automatically and it ended up being the wrong product call. We think the decision on when to bump updatedTime should be left to the product and not our underlying system. Would love to hear any pushback though!

Did you find this page helpful?