updatedTime
Is there a config for automatically setting
updatedTime
, similar to the autogenerated _creationTime
?3 Replies
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())})
Thx! Sounds good!
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!