bwgjoseph / mongoose-vs-ottoman

feature comparison between mongoose and ottoman
0 stars 1 forks source link

schemaOptions - timestamp #89

Closed bwgjoseph closed 3 years ago

bwgjoseph commented 3 years ago

Hi,

I totally overlooked this out, but could you support this timestamp option

In short, by specifying the timestamp option, it will auto-create createdAt and updatedAt field (default) and maintain the timestamp whenever doc create/update. It also have the option to override and specific the field as a different name than createdAt and updatedAt.

This is a article too, if I'm not being clear

Thank you!

AV25242 commented 3 years ago

We added this to our next release. You should be able to see this in

AV25242 commented 3 years ago

Available with beta 4 please review