Open kuangshp opened 4 years ago
I want the updatedAt field to be updated to the current time by default every time the data is updated,But I couldn't figure out how to solve the problem
@IsDate() @prop({ required: true, default: () => Date.now, }) updatedAt!: Date;
This repository is not maintained anymore, please look at the new typegoose repo
I want the updatedAt field to be updated to the current time by default every time the data is updated,But I couldn't figure out how to solve the problem