Is this intended behavior where BeforeUpdate hook is only triggered and used when the values are updated using struct?
Is it possible to have a update tag which updates the _updatedat column if it exists. Similar to how soft delete works, where we update _deletedat is set to current time if the column exists and we mention the tag in struct.
The following two queries don't update the _updatedat column
The below queries work fine and update the _updatedat column
Is this intended behavior where BeforeUpdate hook is only triggered and used when the values are updated using struct? Is it possible to have a
update
tag which updates the _updatedat column if it exists. Similar to how soft delete works, where we update _deletedat is set to current time if the column exists and we mention the tag in struct.