I've implemented a new DateTime field/column in a database collection. How do I get it be automatically filled in with the date and time when a new record is added to the database collection?
I have it started but want to know how to finish it; in the ..._afterInsert() method, I have the following code:
let hookContext = context;
item.datetime = ?